You can use the "From workspace" simulation block. If necessary, search the simulink library.
Your data from the workspace must have at least 2 columns, i.e. 1. Timestamp 2. Signal Both column vectors must be the same size if no error message appears.
For example, in the workspace
A <5x2 doubles>
<p> A = [14.3 0.5; 14.2 0.48; 14.1 0.44; 14.1 0.5; 14.6 0.6];
Then, in Simulink, using the From workspace, paste [A] into the Data field, as shown in the examples. See http://www.mathworks.com/help/simulink/slref/fromworkspace.html
Finally launch your simulink model! Enjoy
Β¬atck
source share