Determine Data Types in Simulink
조회 수: 3 (최근 30일)
이전 댓글 표시
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
채택된 답변
Kaustubha Govind
2011년 6월 16일
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Sources에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!