from 0 1 matrix to boundaries and vertices
Show older comments
I have a matrix like the one is attached here I want to overwrite on the ones:
- 2 if the cell is a edge
- 3 if the cell is a vertex
like from:
1 1 1 1 1
1 1 1 1 1
0 1 1 1 0
to:
3 2 2 2 3
3 3 1 3 3
0 3 2 3 0
any idea?
3 Comments
Dyuman Joshi
on 19 Dec 2022
Edited: Dyuman Joshi
on 19 Dec 2022
What is the criteria for an element being an edge and an element being a vertex?
Andrea Somma
on 19 Dec 2022
Accepted Answer
More Answers (0)
Categories
Find more on Object Analysis in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

