Info

此问题已关闭。 请重新打开它进行编辑或回答。

If I have a for loop that plots a line on each iteration, how do I make it plot all of the lines on just 1 graph?

2 次查看(过去 30 天)
Just a simple explanation of how to accomplish this or what functions to use is fine.

回答(1 个)

José-Luis
José-Luis 2016-7-1
编辑:José-Luis 2016-7-1
hold on might do the trick.
aH = axes;
hold on;
for ii = 1:5
plot(aH,rand(10,1));
end

此问题已关闭。

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by