Array element(2x16) and display

2 次查看(过去 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 个评论
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