plot N*N pane questions
Mostrar comentarios más antiguos
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 comentarios
chengxuan yu
el 18 de Jul. de 2012
Walter Roberson
el 18 de Jul. de 2012
What is "Memory Matrix" in this context?
Would it work for your purposes to turn on grid lines with the ticks set 1 unit apart?
chengxuan yu
el 20 de Jul. de 2012
Editada: Walter Roberson
el 20 de Jul. de 2012
Walter Roberson
el 20 de Jul. de 2012
Okay, so what is remaining for your question?
chengxuan yu
el 23 de Jul. de 2012
Image Analyst
el 23 de Jul. de 2012
Editada: Image Analyst
el 23 de Jul. de 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.
Respuestas (1)
Walter Roberson
el 23 de Jul. de 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 comentarios
chengxuan yu
el 25 de Jul. de 2012
Walter Roberson
el 25 de Jul. de 2012
Sorry I should have written ind2sub() instead of idx2sub()
Categorías
Más información sobre Interact with Maps en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!