フィルターのクリア

How to multiply scalar and matrix(i set her in ''uitable1'') in GUI?

1 回表示 (過去 30 日間)
Mateja Sima
Mateja Sima 2022 年 6 月 29 日
編集済み: Voss 2022 年 6 月 29 日

採用された回答

Voss
Voss 2022 年 6 月 29 日
Use the Data property of the uitable
data = get(handles.uitable1,'Data')
There's no telling (based on the code we can see) what the class of Data is.
If it's a numeric matrix, you can use it in your calculation directly.
If it's a cell array of character vectors, you can try to do str2double on it and then use that.
If it's something else, you'll have to do something else.
  2 件のコメント
Mateja Sima
Mateja Sima 2022 年 6 月 29 日
Thanks and it works!!
Voss
Voss 2022 年 6 月 29 日
編集済み: Voss 2022 年 6 月 29 日
You're welcome!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by