Array element(2x16) and display

2 views (last 30 days)
vishwajit jadhav
vishwajit jadhav on 12 Aug 2019
Edited: Jonas on 13 Aug 2019
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 Comments
KALYAN ACHARJYA
KALYAN ACHARJYA on 12 Aug 2019
Can you elaborate please?
vishwajit jadhav
vishwajit jadhav on 13 Aug 2019
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?

Sign in to comment.

Answers (1)

Jonas
Jonas on 13 Aug 2019
Edited: Jonas on 13 Aug 2019
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

Products

Community Treasure Hunt

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

Start Hunting!