Generate a sector mask within a big matrix
Ältere Kommentare anzeigen
A sector mask is defined by distance and angle. Please see the image for clarification on mask.
I want to generate a 100 by 100 matrix where all the matrix element inside the mask is 1 otherwise 0.

Thanks.
2 Kommentare
Looky
am 11 Dez. 2019
Do you already have the coordinates as show in the image? Then just convert to polar using cart2pol and afterwards use some simple logic to check for radius and the angle.
Turlough Hughes
am 11 Dez. 2019
Can you attach the matrix as a .mat
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Interpolation of 2-D Selections in 3-D Grids finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!