Is it possible to show a square surface with an empty circular center in MATLAB?

4 visualizaciones (últimos 30 días)
Is it possible to show a square surface with an empty circular center?
Well, I know that in MATLAB we are talking matrices, but I was wondering if we can handle cases like this with MATLAB somehow. I want to use this shape as a frame for an imagesc plot. So, the center should be empty to allow the imagesc plot behind to be visible.
Any comments would be really appreciated!
Best Regards
Parvaneh

Respuesta aceptada

Jan
Jan el 11 de Jul. de 2013
Yes, it is possible.
The implementation depends on what exactly "empty circular center" means. You can draw a white square with a black circle at the center. Or the circle can have the color of the background of the axes or figure. Or this can be used as binary mask or alpha channel.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by