How to plot all results from a for loop?
Show older comments
Hi all, I have created a function called maxrange and have created a for loop for this and am trying to plot the results. If I run the script it displays all the values for y that I want but still only plots the final value.
for m0=[73810:196.9:93500]
y=maxrange(m0)
end
x=linspace(10,19700,101)
plot(y,x)
Accepted Answer
More Answers (0)
Categories
Find more on Loops and Conditional Statements 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!