Exercise 7.4: Save data

  1. Model a cosine in Simulink. Visualise the signal for 10 seconds in a scope.
  2. Save the output of the cosine in a .mat-file. Hereto, use the "To File" block from the library category Sinks. Replace the "Variable name" to "cosine". Run the Simulink model.
  3. Load the .mat file in Simulink with the load command. Plot the second row of it's data versus the first row. This should yield the same result as the scope.

Previous      Next      Up      Answer

Esteur 2010-03-22