How to run model form m-file and save final values
Show older comments
Hi all.
I already know how to run model form m-file using command
sim(model);
But how to save the final result. I have two Step and Sum block in model.mdl and in m-file
Step_time1 = 1;
Step_value1 = 2;
Step_time2 = 2;
Step_value2 = 3;
sim(step_sum);
Now, how to only import final Sum value at Tend (=5) in m-file, and save it in *.txt.
Thanks.
Accepted Answer
More Answers (0)
Categories
Find more on Modeling in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!