필터 지우기
필터 지우기

Delete zero values in works pace variable

조회 수: 1 (최근 30일)
missC
missC 2014년 7월 23일
댓글: missC 2014년 7월 23일
Hi, How to delete zero values in the workspace variable and save the updated value (without zero) into another variable?
Great Thanks

채택된 답변

Julia
Julia 2014년 7월 23일
a=[1 2 3 0 4 5 0 6 7]
a =
1 2 3 0 4 5 0 6 7
>> a=a(a>0)
a =
1 2 3 4 5 6 7

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by