필터 지우기
필터 지우기

How do i add more than one value in one cell in UItable?

조회 수: 11 (최근 30일)
sachin narain
sachin narain 2018년 4월 19일
댓글: Walter Roberson 2018년 4월 19일
I have created a UItable in Matlab GUI .The table has 1 row and 6 columns.I want the 1st cell to have more than one value like a normal array(for ex: 0 100 200 300) .But as soon as i am adding more than one value,the contents of the cell turn to 'NAN'
Summarising - i am not able to add more than one value in one cell
Kindly help me with this.Any help will be appreciated.Kindly look at the pictures i have attached

채택된 답변

Walter Roberson
Walter Roberson 2018년 4월 19일
The only way you can do that is by making the cell at text cell, in which case the spaces are just characters like any others. (If you wanted to use the numeric value equivalent to the characters you would need to convert to numeric afterwards.)
  댓글 수: 4
sachin narain
sachin narain 2018년 4월 19일
Thank you for the answer.One more question. Say i have 4 columns of data.I dont want to apply my cellfun to the 4th column data.How do i do that?
Walter Roberson
Walter Roberson 2018년 4월 19일
Column_to_affect = 1;
T1(:,Column_to_affect) = cellfun(@num2str, T1(:,Column_to_affect), 'uniform', 0);

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

추가 답변 (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