How to find the neighbors of a 150x150 matrix?

3 次查看(过去 30 天)
I have a 150x150 matrix which represents grains of a of an engineering material. I wanted help with a code on how to find the neighbors of these grains and use it draw a node and vertex graph.

回答(1 个)

Matt J
Matt J 2023-11-13
You can use bwboundaries.

产品


版本

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by