Loop multiple plots single figure 3D matrix
1 次查看(过去 30 天)
显示 更早的评论
Does anybody know how I can write the following commands in a loop
figure
hold on
plot(gjG(11,:,1));
plot(gjG(11,:,2));
plot(gjG(11,:,3));
plot(gjG(11,:,4));
plot(gjG(11,:,5));
plot(gjG(11,:,6));
hold off
gjG is an 11x8x6 matrix.
0 个评论
采纳的回答
Sean de Wolski
2013-5-8
编辑:Sean de Wolski
2013-5-8
figure
hold on
for ii = 1:6
plot(gjG(11,:,ii));
end
hold off
4 个评论
Sean de Wolski
2013-5-8
Vars contains strings for the names of the variables, not the variables themselves.
Vars = {GjG,gjR,etc...}
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!