Automate multiple graph for y values
이전 댓글 표시
Hi, I am still beginner in MATLAB and I wonder how to plot multiple (hundreds) of rows into one graph? For example if I have
x=[1:5] and the my y values are y = [ 2 3 5 6 4; 4 5 6 2 10; 13 4 12 10 4; ... ] -> 100 rows or more
Is it possible to automate the plot? instead of using
plot (x,y(1,:)) hold on plot (x,y(2,:)) plot (x,y(3,:)) ... hold off
is there an easy way to plot all of those y values into a single graph? Thank you in advance for the reply
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!