From: Povi Nike on
Hello,

I have simpowersystem model, I change parameter and store data in simout block. Simout "limit data points to last" value is set to 1, save format- array because I have static data and I need to store it. I run multiple simulations but the data is stored in the same first row of simout. Each simulation erase previous simulations data. How to store data in simout or in different way of each simulation without erasing previous simulation data.

Povilas
From: Arnaud Miege on

"Povi Nike" <mr_djmix(a)yahoo.com> wrote in message
news:hlc97r$2qt$1(a)fred.mathworks.com...
> Hello,
>
> I have simpowersystem model, I change parameter and store data in simout
> block. Simout "limit data points to last" value is set to 1, save format-
> array because I have static data and I need to store it. I run multiple
> simulations but the data is stored in the same first row of simout. Each
> simulation erase previous simulations data. How to store data in simout or
> in different way of each simulation without erasing previous simulation
> data.
>
> Povilas
>

I don't think you can. You need to retrieve the data between each run and
store it in a different array. For example, something like (pseudo-code):

sim_results = zeros(1,length(nb_sim));
for k=1:nb_sim
sim(model_name)
sim_results(k) = simout(1);
end

HTH,

Arnaud