I can't for example plus tow elements of the UItable. Why????

조회 수: 1 (최근 30일)
Ted
Ted 2013년 8월 31일
Hi dear any body, When I want to plus tow elements of an uitable data, this below error will appear. how can I solve this problem?
the error : " Undefined function 'plus' for input arguments of type 'cell' "
I Use below command to read the table data.
dat=get(handles.tab1,'data'); n=dat(2,1)+dat(1,1);

채택된 답변

VAIBHAV
VAIBHAV 2013년 8월 31일
I think u need to convert ur string data into numerical format ie dat=str2double(get(handles.tab1,'data'));

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by