Array element(2x16) and display

4 ビュー (過去 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 Center および File ExchangeData Types についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by