How to plot multiple lines in a graph?
2,238 次查看（过去 30 天）
编辑： MathWorks Support Team ，2019-5-22
I have a matrix with several 5 layers. I want to plot the numbers at a specific gridpoint for layers 2,3, and 4. How would I go about doing this?
Thanks for the help!
Muhammad Usman Saleem 2016-6-24
x1=[2 3 4 5];
y1=[9 4 3 2];
x2=[11 20 30 50 ];
y2= [ 20 30 50 60];
This plot two line graphs on same plot
MathWorks Support Team 2019-5-22
Please see the following post, which has a good accepted answer to a similar question:
Find more on Discrete Data Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!