From: Povi Nike on 15 Feb 2010 15:02 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 16 Feb 2010 05:29 "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
|
Pages: 1 Prev: compiler error when running stateflow model Next: Matlab engine - open interactively? |