필터 지우기
필터 지우기

Table with blanks and index symbol

조회 수: 1 (최근 30일)
Simo
Simo 2020년 4월 4일
답변: Maadhav Akula 2020년 4월 7일
How can I have blanks instead of 0 or NaN? And Is there a way to have the index D_{i}
D(D==0)=NaN; D_1=D(:,1); D_2=D(:,2); D_3=D(:,3); D_4=D(:,4); T=table(h,D_1,D_2,D_3,D_4)

답변 (1개)

Maadhav Akula
Maadhav Akula 2020년 4월 7일
How can I have blanks instead of 0 or NaN?
I don't think there is any other option. You can probably assign an empty scalar( [ ] ) but the size of D is going to change then.
And Is there a way to have the index D_{i}
I am not sure what you are trying to do there but why do you want to have seperate variables when instead of D_1 you can replace it with D{:,1}.
Hope this helps!

카테고리

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