Postingan

Menampilkan postingan dengan label how to label graph in matlab

43 how to label curves in matlab

Gambar
How to label Matlab output and graphs - UMD How to label graphs Use the title, xlabel, ylabel, legend commands: x=0:.1:10; y1=sin (x); y2=cos (x); plot (x,y1, '-' ,x,y2, '--' ) title ( 'Trigonometric functions') % title on top of graph xlabel ( 'x') % label x-axis ylabel ( 'y') % label y-axis legend ( 'sin (x)', 'cos (x)') % label each curve How to label graph curves? - MATLAB Answers - MATLAB Central - MathWorks How can I add labeling here? The code of figure is copied here. figure (4), subplot (1,5,1); plot (Out (:,1),time); xlabel ('Rpp') ylabel ('Time (ms)') set (gca, 'ydir', 'reverse'); subplot (1,5,2); plot (Out (:,10),time); set (gca, 'ydir', 'reverse'); subplot (1,5,3); plot (Out (:,20),time); set (gca, 'ydir', 'reverse'); subplot (1,5,4); Labelling Curves on a Graph - MATLAB Answers - MATLAB Central - MathWorks 3 Link The general method would be u...