Can I change the specific cell in the uitable with a function I have created?

4 ビュー (過去 30 日間)
Darren Koh
Darren Koh 2018 年 2 月 13 日
コメント済み: Darren Koh 2018 年 2 月 19 日
Hi there i have a function that i created and I want to display text in a specific cell/results column according to the function. Am i able to do this in guide? How do I choose a specific cell in 'data' to edit and set(handles.uitable .... ) back to my table? Thank you!

採用された回答

Gayatri Menon
Gayatri Menon 2018 年 2 月 16 日
Hi,
The following code snippet might help. Here I am replacing the data of one of the cell in the uitable (tag:uitable1).
set(handles.uitable1,'Data',{'A1',52;'A2',40;'A3',25})
data=get(handles.uitable1,'Data')
data{2,1}='B2';
set(handles.uitable1,'Data',data)
Thanks
  2 件のコメント
Darren Koh
Darren Koh 2018 年 2 月 19 日
Oh thank you this is what i wanted!
Darren Koh
Darren Koh 2018 年 2 月 19 日
Would it be possible for me to set a column to run a function and display a result? For example from what you said above and assuming my 'Results' is in column 3,
data{:,3} = myfuncA
If i wrote myfuncA to output text/numbers will it appear on uitable1 as intended?

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Import and Analysis についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by