Determine Data Types in Simulink
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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) ?
0 Kommentare
Akzeptierte Antwort
Kaustubha Govind
am 16 Jun. 2011
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.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Sources finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!