removing zeros from column

5 ビュー (過去 30 日間)
sermet
sermet 2015 年 8 月 4 日
回答済み: Al Dente 2015 年 8 月 4 日
A=[1;2;2;0;0;3;0;0];
%I need to remove all "0" in A matrix then I need to create a matrix without "0" like; [1;2;2;3]

採用された回答

Al Dente
Al Dente 2015 年 8 月 4 日
A(A==0) = []

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by