matlab - How to remove a particular set of cells from a cell array? -
Suppose I have an array with 10 cells:
C {1}, C {2}, ..., >
, and b = [1 2 8] , then I C {1} , C {2} I want to evacuate and C {8} , so I tried c {b} = [] , but it does not work to do this Any easy way?
c (b) = [] In the form it is a {} notation to address the contents of a cell rather than a cell. If you get more than one cell from the {} signaling, it returns a comma separated list that you can not use for the index. () Notation will give you an index for the actual cells and is the correct way to do this.
Comments
Post a Comment