I want to plot a N*N pane figure, N is an integer.Who know how can I do that? Thanks in advance; any comments will be appreciate.
No products are associated with this question.
pane = zeros(10,10); temp_idx_to_fill = randperm(numel(pane)); idx_to_fill = temp_idx_to_fill(1:N); [row_to_fill, col_to_fill] = idx2sub(size(pane), idx_to_fill);
Now fill the locations at [row_to_fill(1), col_to_fill(1)], [row_to_fill(2), col_to_fill(2)] and so on.