Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
Mateja Sima
Mateja Sima am 29 Jun. 2022
Bearbeitet: Voss am 29 Jun. 2022

Akzeptierte Antwort

Voss
Voss am 29 Jun. 2022
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.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by