How to displays data in array C as an image in App Designer

2 ビュー (過去 30 日間)
balandong
balandong 2020 年 3 月 31 日
回答済み: balandong 2020 年 4 月 1 日
Dear Coder,
In App designer, how can I display an array data as an image?
In normal circumstances, the above routine can be easily achieved via the following,
CArray=[200 1 3 400 3;...
1 0 3 400 3;...
1 1 3 400 3000]
image(CArray)
However, I am not able to replicate the same routine under the app designer figure
I have check documentaion about the Display Graphics in App Designer, but I cannot find similar image function.
Appreciate if someone can shed some light

採用された回答

balandong
balandong 2020 年 4 月 1 日
fig=app4;
fig.Panel2.AutoResizeChildren = 'off';
ax = subplot(1,1,1,'Parent',fig.Panel2);
CArray=[200 1 3 400 3;...
1 0 3 400 3;...
1 1 3 400 3000]
image(ax,CArray) % To include the hanlde ax!

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by