标签: matlab nan cell-array
我应该如何用NaN替换单元格数组中的完整行/列?
test = cell(3,2); % These calls won't do it test{2,:} = nan; test(2,:) = nan;
答案 0 :(得分:0)
test(2,:) = repmat({nan},1,2);