Error: Simulink Scope Block does not support 'Array' format for logging matrix signals
Show older comments
I'm looking to log data from Simulink to the workspace as an array. I have two outputs as seen in the attached image, one is a 4x1 matrix and the other is a 2x1. I've reviewed the requirements for logging data as an array and I can't figure out what needs to change in my setup. The array outputs are 4 x 1 x t and 2 x 1 x t, where t is the size of the simulation time array. I want it to be a 2D array for each output, size 4 x t and 2 x t.
Currently I initialize each array using:
x_d = zeros(4,1);
u_d = zeros(2,1);
And then calculate the value of each element before sending the matrix on as the output signal.
I know one workaround would be just to send each individual element on as vectors and connecting each output to scope blocks. Or I think I could add in a block to change the dimensions of each signal.
Both ways seem inefficient so I'm sure there's another way in the initial setup I'm missing for the variable matrices.
Appreciate any help!
Accepted Answer
More Answers (0)
Categories
Find more on Scopes and Data Logging in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!