Question
Is there a way in the handles menu to eliminate the circular "tips" on stem plots? I just want vertical lines as the plots are grouped four to a figure and the circular parts get in the way of the data.
Expert Answer
Kshitij Singh
PhD Expert
Answered Aug 12, 2026
A slight adaptation of the example in the help to set marker size will do the trick:
figure x = 0:25; y = [exp(-.07*x).*cos(x);exp(.05*x).*cos(x)]'; h = stem(x, y); set(h(1),'MarkerFaceColor','blue','MarkerSize',0) set(h(2),'MarkerFaceColor','red','MarkerSize',0)
100% Run Guarantee
3-Hour Fast-Track Delivery
Need a Custom Version or Complete Simulation for This Problem?
Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.
Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here
Related stem Questions & Solutions
Browse All →
Explore similar technical troubleshooting questions and verified MATLAB solutions:
Ready-to-Run MATLAB & Simulink Projects
Browse All Projects →