victoriaklimaj
victoriaklimaj

Reputation: 59

running multiple MATLAB scripts in a row

This is a very simple question: I have several MATLAB scripts that I want to run, each of which takes several hours. How can I make them all run in a row (so that script 2 starts after script 1 ends, script 3 starts after script 2 ends, etc.)?

Sorry if this was been answered! I was unable to find the relevant posts on this board.

Thanks!

Upvotes: 2

Views: 2283

Answers (2)

lennon310
lennon310

Reputation: 12689

Copy the script name into one file,

run script1.m;
run script2.m;

and run the file

Upvotes: 1

Bas Swinckels
Bas Swinckels

Reputation: 18488

Make one master script:

script1;
script2;
script3;

Upvotes: 2

Related Questions