How to stop the program and store the scalar variable and rerun the program and plot scalar against scalar
Show older comments
Hi, I want to plot scalar value (t) against scalar (alpha). But it does not plot.
Simplified code is below:
da = 0.1
for i=1:31;
alpha = (1-1)*da
...
for nt=1:30001;
t=t+dt
...
if (gap2 < 10^(-8)) |(gap2 < 10^(-8))
plot (t,alpha)
break
end
end
Thanks
Accepted Answer
More Answers (0)
Categories
Find more on Discrete Data 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!