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일

0 개 추천

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개)

카테고리

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

질문:

2014년 7월 23일

댓글:

2014년 7월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by