plot what is calculated inside REPEATED for loop as one curve in one figure ?

1 次查看(过去 30 天)
can I plot x(i) outside the while and for loops ? which means I want to display one figure and one curve show me x value corresponding the number of for loop steps, for example for loop repeated itself 4 times, here I want to show me one curve of x corresponding 80 step
thanks in advance
while 1
for i=1:20 % Repeated itself 4 times which means there will be 80 value for "x"
x(i)=calculation
end
end
plot (xi)

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Animation 的更多信息

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by