ワーク変数に代入した​テーブルをAppD​esignerのテー​ブルコンポーネン​トに表示させたい

readtableで読み込んだテーブルをワーク変数に代入して処理しています。
その読み込んだテーブルをAppDesignerで作成したアプリのテーブルコンポーネントに表示させたいと考えてます。
どのように記述すればよいでしょうか?

 Accepted Answer

Kojiro Saito
Kojiro Saito on 10 Aug 2022
uitableのColumnNameとDataを読み取ったテーブルから代入します。
App Designerでのコールバック例
t = readtable('patients.xls');
app.UITable.ColumnName = t.Properties.VariableNames;
app.UITable.Data = t;

2 Comments

和也
和也 on 10 Aug 2022
ご回答ありがとうございました。
テーブルUIに出力することができました。
Kojiro Saito
Kojiro Saito on 18 Aug 2022
ありがとうございます。差し支えなければ回答の採用をしていただけますでしょうか。

Sign in to comment.

More Answers (0)

Categories

Find more on App Designer を使用したアプリ開発 in Help Center and File Exchange

Products

Release

R2019a

Asked:

on 10 Aug 2022

Commented:

on 18 Aug 2022

Community Treasure Hunt

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

Start Hunting!