MATLAB Answers


Doing many simulations in loop

Asked by Kamil
on 2 Apr 2013


Id like to make many simulations of my model with change of model parameters with each simulations. I wrote loop:

for k=1:20

run (path to model)

run (path to some model parameters)

WO_I = 7 + k // this is my parameter

sim (path to model) save(['symulacja_',num2str(k)])

clear all

end Unfortunately it doesnt work well, I want to simulate ten days with data record step of 1 hour. I set this values in one window but it doesnt simulate in that way.

Hope problem is easy to solve.Plz help.



Log in to comment.

0 Answers

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!