Programming in MATLAB

Asked

Viewed 224 times

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 join them together and see which curve fits these results ?

  • Could it show a small piece of your problem? You are saving in what file format the . mat?

1 answer

2

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

Provide more details of your problem, please.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.