Array element(2x16) and display

조회 수: 3 (최근 30일)
vishwajit jadhav
vishwajit jadhav 2019년 8월 12일
편집: Jonas 2019년 8월 13일
Matlab R2017a
When array element(2x16) connected to the display, while simulation it is only showing (2x10) data.
What to do to see all location of an array in display?
  댓글 수: 2
KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 8월 12일
Can you elaborate please?
vishwajit jadhav
vishwajit jadhav 2019년 8월 13일
I have a simulink constant block unit16_2x16 ie. [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15; 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31] now when I connect this array to display block while simulation display shows only 2x10 ie.[0 1 2 3 4 5 6 7 8 9; 16 17 18 19 20 21 22 23 24 25]
Is there any configuration to be done to see all locations of constant block in display?

댓글을 달려면 로그인하십시오.

답변 (1개)

Jonas
Jonas 2019년 8월 13일
편집: Jonas 2019년 8월 13일
Hi
Please see the reference documentation for the Display block.
It states that "The Display block shows the first 200 elements of a vector signal and the first 20 rows and 10 columns of a matrix signal."
You can try to display the transpose of your matrix (such that it displays not 2x16 but 16x2) or you can split up the matrix in two, one 2x10 and the remaining 2x6 and give each its own Display block. For this last solution you can try to use the Selector block most easily I believe.
With kind regards,
Jonas

카테고리

Help CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by