how to remove a specific section of a cell

1 visualización (últimos 30 días)
Terek Li
Terek Li el 14 de Oct. de 2016
Respondida: Andrei Bobrov el 14 de Oct. de 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.'

Respuesta aceptada

Andrei Bobrov
Andrei Bobrov el 14 de Oct. de 2016
a(2:end,1) = {[]};

Más respuestas (0)

Categorías

Más información sobre Data Types en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by