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

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -