how to run function for several times with different variables
61 views (last 30 days)
Show older comments
Asliddin Komilov on 5 Mar 2019
Commented: Stephen23 on 12 Mar 2019
I have something like this:
%a,b,c and d are function inputs
but I need to run function replacing 'a' in 'n' with 'b','c' and 'd' at once and save the data so I can compare it. it is a sensitivity analysis for this function outputs.
Dennis on 5 Mar 2019
In your example you do not need more than one variable:
a=[5 8 9 11];
Edited: Stephen23 on 12 Mar 2019
Stephen23 on 12 Mar 2019
You could save the bother by simply putting your data into one array and using indexing.
Find more on Data Type Identification 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!