MATLAB: Plot vertical lines from a point to x-axis plotting I would like to plot veritcal lines in the xy-plane, from a given point down to the x-axis. I have looked around, but I can find anything that solves my problem. Best Answer Use a stem plot. Related SolutionsMATLAB: How to draw a vertical line at certain x values on a plot hold on;plot([x x], ylim)Or better yet, in case you have multiple sets of axes:% if ax is the set of axes you are plotting tohold(ax, 'on');plot(ax, [x x], ylim(ax)) MATLAB: Shifting x-axis plot(1:10)set(gca,'XAxisLocation','top') Related QuestionX-axis valuePlotting a vertical line using ezplotHow to plot a semicircle with lines at the maximaRelabel x-axis
Best Answer