How to delete only a range of cells in a column in matlab -


i have 23x5 cell array, , i'm trying replace cells first empty cell in 1 column.

when try array{2:end,4}=[] "the right hand side of assignment has few values satisfy left hand side."

still being confused how matlab handles different classes, tried array(2:end,4)=[] , "a null assignment can have 1 non-colon index."

i know loop empty contents of each cell, feel there must easier solution fix this.

thanks help.

try using:

array(2:end,4) = {[]}

for example:

>> array = cell(23,5); >> array(:) = {1}; >> array(2:end,4) = {[]} array =       [1]    [1]    [1]    [1]    [1]     [1]    [1]    [1]     []    [1]     [1]    [1]    [1]     []    [1]     [1]    [1]    [1]     []    [1]     [1]    [1]    [1]     []    [1]     [1]    [1]    [1]     []    [1]     [1]    [1]    [1]     []    [1]     [1]    [1]    [1]     []    [1]     [1]    [1]    [1]     []    [1]     [1]    [1]    [1]     []    [1]     [1]    [1]    [1]     []    [1]     [1]    [1]    [1]     []    [1]     [1]    [1]    [1]     []    [1]     [1]    [1]    [1]     []    [1]     [1]    [1]    [1]     []    [1]     [1]    [1]    [1]     []    [1]     [1]    [1]    [1]     []    [1]     [1]    [1]    [1]     []    [1]     [1]    [1]    [1]     []    [1]     [1]    [1]    [1]     []    [1]     [1]    [1]    [1]     []    [1]     [1]    [1]    [1]     []    [1]     [1]    [1]    [1]     []    [1] 

Comments