Simple way to outline perimeter of grid using indexing.

1 次查看(过去 30 天)
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
is there an existing function, for example "fillGrid(1:5)", that will produce this
I have not yet found anything in the documentation that appears to be able to do this.
Thanks!

采纳的回答

Image Analyst
Image Analyst 2015-4-18
Not that I know of. I think it's pretty specialized , so you'll probably have to write it yourself.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graphics Object Programming 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by