How to plot each row separately
10 views (last 30 days)
Show older comments
Hello everybody, I need your help, please. I have a table "T"(double) with 189 rows and 9 columns (variables) and I have to plot Var2 in function of V3, Var4 in function of Var5 and so on in the same graph but each row separately to a different graph (I guess I have to use 'clf'). The attached image is what I want as a result ( I did it with excel). Thank you in advance!
0 Comments
Answers (1)
KSSV
on 20 Sep 2018
A = rand(50,3) ;
x = 1:size(A,1) ;
figure
hold on
for i = 1:size(A,2)
plot(x,A(:,i))
end
legend
figure
plot(x,A)
legend
4 Comments
See Also
Categories
Find more on 2-D and 3-D 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!