MATLAB: Replace a row/column in a cell array with NaN : <p>How am I supposed to replace a complete row/column within a cell array with NaNs?</p>

<pre><code>test = cell(3,2);

% These calls won't do it
test{2,:} = nan;
test(2,:) = nan;
</code></pre>
