How can a run my script 100 times and gain the results at once??

3 views (last 30 days)
Hello,
I want to run my script 100 times and take all the answers for the 100 executions. I tried with the for loop as a struct that is shown bellow but it returns only the last executions results.
function [output]= extraScript(input)
for i=1:100
[output.i]= myScript(input);
end
Can anybody help me?? Thank you in advance!

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 18 Jan 2014
for i=1:100
output{i}= myScript(input);
end

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!