MATLAB: Determine Data Types in Simulink

data typessimulink

Hi, I just like to know which data types and which Signal Dimension is used inside my Simulink model. Therefore, in the menu bar I pike the following: Format > Port/Signal Displays> Port Data Types and: Format > Port/Signal Displays> Signal Dimensions
After this selection, labels appear above the connection lines between the different Simulink Models, for example: double or double[8*1] or double(8)
It is clear that double stands for a single sample. I think double[8*1] stands for a 2D-Array with 8 columns and 1 row.
My questions: What means double(8) ? What is the difference between double[8*1] and double(8) ?

Best Answer

double(8) is a 1-D signal of 8 elements, while double[8x1] is a 2-D signal with 8 rows and 1 column. A number of source blocks (like Constant, Sine Wave, Step) have a parameter called "Interpret vector parameters as 1-D check box" which can produce such 1-D signals.