Frankly speaking, I want to write a program that can realize the "Memory Matrix". This is part of that. So I hope your help.
plot N*N pane questions
2 views (last 30 days)
Show older comments
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.
6 Comments
Image Analyst
on 23 Jul 2012
Edited: Image Analyst
on 23 Jul 2012
Hmmmm.... Looks like Google Translate didn't do such a good job on that one. Maybe if you reviewed some of Doug Hull's video tutorials ( http://blogs.mathworks.com/videos/) on GUI development you might learn how to do whatever it is that you want to do.
Answers (1)
Walter Roberson
on 23 Jul 2012
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.
2 Comments
See Also
Categories
Find more on Interactive Control and Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!