how to remove a specific section of a cell

2 次查看(过去 30 天)
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.'

采纳的回答

Andrei Bobrov
Andrei Bobrov 2016-10-14
a(2:end,1) = {[]};

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by