필터 지우기
필터 지우기

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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by