How can I store the output data from a for loop
Show older comments
pwf=[0 500 1000 1500 2000 2500 ];
for pwf=[0 500 1000 1500 2000 2500 ]
flow(pwf)=qmax*(1-0.2*(pwf/r)-0.8*(pwf/r)^2);
end
o= table(pwf,flow)
I would like to save all of the outputs and show them in a table, but I don't know how to do so.
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!