How can i input multiple ColumnFormat of UITable in App Designer?

조회 수: 13 (최근 30일)
Sang Hyeok Yang
Sang Hyeok Yang 2020년 7월 31일
댓글: Sang Hyeok Yang 2020년 8월 3일
I have problem in setting ColumnFormat of UITable differently by Column.
I'm trying to input time data in 1st column of UITable and Temp. data in 2nd column of UITable.
But my time data is recorded in string format; [MM-DD-YYYY HH:MM:SS (AM/PM)].
My code is wroted below.
app.UITable1.ColumnFormat = {'char', 'Long'};
app.UITable1.RowName = 1:app.row;
app.UITable1.Data(:,1) = app.E_Tstring;
app.UITable1.Data(:,2:app.NSensor+1) = app.E_D(:,:);
when i run my code, gui print time data to NaN.
In case of putting only Time data in UITable, i got desirable result. ColumnName means 'input time data individually'.
How could i fix this error? Thanks for reading my question.
  댓글 수: 1
Sang Hyeok Yang
Sang Hyeok Yang 2020년 8월 3일
i fix problem by changing all matrix(double, string) into sole cell.
[strings array] --(cellstr)-> {cell array}
[doubles array] --(num2cell)-> {cell array}

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by