필터 지우기
필터 지우기

How to find out numbered value in a matrix

조회 수: 2 (최근 30일)
raj singh
raj singh 2016년 5월 30일
댓글: raj singh 2016년 5월 30일
I have, A={A1,A2,A3,A4,A5}, where
A1=[1 4];
A2=[];
A3=[1 2 3 4];
A4=[1 2 6 3 4];
A5=[];
How can i find out only numbered value means, i want
Anew=[A1,A3,A4]; not A2 and A5

채택된 답변

Andrei Bobrov
Andrei Bobrov 2016년 5월 30일
편집: Andrei Bobrov 2016년 5월 30일
Anew = A(~cellfun(@isempty,A))
  댓글 수: 3
Andrei Bobrov
Andrei Bobrov 2016년 5월 30일
corrected
raj singh
raj singh 2016년 5월 30일
Thanks, its work as i want... Thank you very much

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by