Generate a sector mask within a big matrix
Mostra commenti meno recenti
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 Commenti
Looky
il 11 Dic 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
il 11 Dic 2019
Can you attach the matrix as a .mat
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Interpolation of 2-D Selections in 3-D Grids in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!