MATLAB: Is there another way to write test{1,1:10}=’ ‘

assignmentblankscellscharleft hand sideright hand side

Because obviously test{1,1:10}=' ' doesn't work:
"The right hand side of this assignment has too few values to satisfy the left hand side."
I had previously done test=cell(1,10) but ideally I want some sort of blank value in there that's not [] so when I later do a char() on each entry in the cell it won't complain that it can't do it.

Best Answer

test(1,1:10) = {' '}