How do I remove vertical lines from stem() and combine plot()? -
so got sample code.
x = linspace(0,1,5); y = x.^2 + 8*x; u = [2,1,3,9,3]; figure axis([0,10,-100,100]) stem(x,u) plot(x,y)
can tell me
1) how remove vertical lines? want make scatter plot
2) how combine curve $$y = x^2 + 8x$$ , scatter plot? having hard time finding correct commands.
3) , equivalent of "axis" stem?
in matlab, apparently there command called
scatter
same parameters.hold on
command to
figure
stem(x,u); hold on; plot(x,y);
3. axis should last thing in plot
Comments
Post a Comment