Hi If i have column titles as 'shop floor Q1 Q2 Q3 Q4' i want to just change floor as floorNum. how do i do that

 채택된 답변

Neesha
Neesha 2014년 8월 27일

0 개 추천

not working.. :(
Error using dataset/subsasgnDot (line 31) Unknown dataset property: VariableNames.
Error in dataset/subsasgn (line 83) a = subsasgnDot(a,s,b);

댓글 수: 2

Right, you're not using a table but something out of the stats toolbox, which I don't have.
According to the documentation, for dataset d, it's:
d.Properties.VarNames{2} = 'floorNum';
There's even an example of changing the name right in the doc.
doc dataset
Neesha
Neesha 2014년 8월 27일
ok, thanks. It worked. if i changed curly brackets to paranthesis.

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

추가 답변 (1개)

Guillaume
Guillaume 2014년 8월 22일
편집: Guillaume 2014년 8월 22일

2 개 추천

Assuming you're talking about a table (which I'll call T):
T.Properties.VariableNames{2} = 'floorNum';
For more information:
doc 'Table properties'

카테고리

도움말 센터File Exchange에서 Tables에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

질문:

2014년 8월 22일

댓글:

2014년 8월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by