Programming in MATLAB

1

I have a simulation ready in MATLAB and every time I run I need to save the result. What command do I use to save each result separately and then merge all and see which curve fits these results?

    
asked by anonymous 25.03.2015 / 02:00

1 answer

1

The simulation is either in Matlab itself or within Simulink. If it is in Simulink there is how to configure Scope (graphic to save). If it is in Matlab code, you can place the simulation inside a loop and save to each iteration the result as columns of an array or elements of a list. After that, curve adjustments are verified. If you are looking for polynomial functions, use polyfit .

Please provide more details of your problem, please.

    
24.10.2016 / 05:09