MATLAB Answers

how to remove a specific section of a cell

4 views (last 30 days)
Terek Li
Terek Li on 14 Oct 2016
Answered: Andrei Bobrov on 14 Oct 2016
For example if I have a 5:2 cell, each cell is filled with value. Is there a way to empty all the value in the 1st column except value in {1,1}
I tried this:
a(2:,1) = []
but MATLAB says 'A null assignment can have only one non-colon index.'


Sign in to comment.

Accepted Answer

More Answers (0)


Translated by