In the attached model "untitled.slx" (screenshot is also provided below), a constant block outputs a signal of dimensions [1×2] to a gain block that does matrix multiplication with a gain parameter of dimensions [2×1]. This yields an output with dimensions [1×1]. The scope data is logged as the variable "ScopeData" in format "Structure With Time". After running the simulation, the logged signal from the output of the Gain block (the first row of "ScopeData.signals") has dimensions 1x1xN, instead of Nx1, where in this model N = 11 refers to the number of time points.
The questions:
1) How can I have the output of the Sum block logged as Nx1 instead of 1x1xN?
2) What is the difference between the signal dimensions of 2-D scalars (dimensions [1×1]) and 1-D scalars (dimensions [1])
3) Why the signals are logged as 1x1xN instead of Nx1?
4) Why is "Display > Signal & Ports > Signal Dimensions" unable to show any distinction between 2-D scalars and 1-D scalars?
Best Answer