Simple way to outline perimeter of grid using indexing.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
James
el 18 de Abr. de 2015
Comentada: James
el 18 de Abr. de 2015
Given, say, a 4 by 4 grid, is there an easy way to outline various contiguous subsets of the grid?
In other words, if I start out with this
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149201/image.jpeg)
is there an existing function, for example "fillGrid(1:5)", that will produce this
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149202/image.jpeg)
I have not yet found anything in the documentation that appears to be able to do this.
Thanks!
0 comentarios
Respuesta aceptada
Image Analyst
el 18 de Abr. de 2015
Not that I know of. I think it's pretty specialized , so you'll probably have to write it yourself.
Más respuestas (0)
Ver también
Categorías
Más información sobre Graphics Object Programming en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!