Getting Started    

Sending Data to the MATLAB Workspace

This section explains how to send data from a Simulink model to the MATLAB workspace so you can analyze the results of simulations in greater detail.

This section explains how to

Using a Signal To Workspace Block

You can use a Signal To Workspace block, from the DSP Sinks library, to send data to the MATLAB workspace as a vector. For example, you can send the error rate data from the Hamming code model, described in the section Reducing the Error Rate Using a Hamming Code. To insert a Signal to Workspace block into the model, follow these steps:

  1. Type hammingdoc at the MATLAB Help browser to open the model.
  2. Drag a Signal To Workspace block from the DSP Sinks library into the model window and connect it as shown in the following figure.

Hamming Code Model with a Signal To Workspace Block


  Using the Communications Blockset with MATLAB Configuring the Signal To Workspace Block