I am trying to add images to my uifigure but I face the following error

2 ビュー (過去 30 日間)
Zainab Riyadh
Zainab Riyadh 2023 年 5 月 2 日
回答済み: Walter Roberson 2023 年 5 月 2 日
I have the follwing code for inserting images in uifigure, the images should appear as a small icon, but they don't.
fig3=uifigure('Name','Summary Report3');
table33 = uitable('Parent', fig3, 'Position', [10 5 500 400], 'Data', T);
for i = 1:height(T)
imgStyle = uistyle("Icon",T.Image(i));
addStyle(table33, imgStyle, 'cell', [i,1])
end
  2 件のコメント
Walter Roberson
Walter Roberson 2023 年 5 月 2 日
Which MATLAB release are you using?
Zainab Riyadh
Zainab Riyadh 2023 年 5 月 2 日
R2021b

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2023 年 5 月 2 日
The 'Icon' option became available in R2022a, which is the release after what you are using.

その他の回答 (0 件)

カテゴリ

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

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by