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?

  1. in matlab, apparently there command called scatter same parameters.

  2. hold on command to

figure

stem(x,u); hold on; plot(x,y); 

3. axis should last thing in plot


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -