【发布时间】:2018-06-28 16:28:54
【问题描述】:
我应该如何用 NaN 替换元胞数组中的完整行/列?
test = cell(3,2);
% These calls won't do it
test{2,:} = nan;
test(2,:) = nan;
【问题讨论】:
标签: matlab nan cell-array
我应该如何用 NaN 替换元胞数组中的完整行/列?
test = cell(3,2);
% These calls won't do it
test{2,:} = nan;
test(2,:) = nan;
【问题讨论】:
标签: matlab nan cell-array
test(2,:) = repmat({nan},1,2);
【讨论】:
test1(2,:) = {nan};