remove an element from vector

Hi, I need to find intersection of two vectors. After intersection if 0 is present i need to remove 0. Can anyone help me.

 채택된 답변

Walter Roberson
Walter Roberson 2012년 2월 3일

0 개 추천

V(V==0) = [];
Or you could use
V = setdiff(V,0);

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by