I have several scripts that run a bunch of formulas and give a number as output but I need to run them while changing one of the input variables several times.
Say I have script_1, scrip_2 and script_3 which if ran in order they give number y as an output, a function of variable x.
I have a master scrip which runs everything in order and records number y for one value of variable x which is defined at the beginning of the master script. How can I setup the master script so that it can vary x, say from 1 to 100, run through script_1, scrip_2 and script_3, and record output y?
I was thinking of a for loop like:
x(1) = 1;
for i = 1:100
x(1+i) = x(i) + 1;
But the scripts can't be ran in a for loop like that. Is there a way to do this?