Question about sets and cell array

 Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 6 Sep. 2013
Bearbeitet: Azzi Abdelmalek am 6 Sep. 2013

0 Stimmen

B{1}(1)=[]
If you want to remove all zeros in B{1}
B{1}(B{1}==0)=[]

Weitere Antworten (1)

Image Analyst
Image Analyst am 6 Sep. 2013

0 Stimmen

B{1} = [1,2];
If you want something more general, then say in what ways does it need to be general. Like, does it need to remove all zeros in B{1} only? Or does it need to remove all zeros in B{2}, B{3} and so on? The limited, very specific question you posted can be solved with my code.

Kategorien

Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by