Plot part of sphere by binary map.
Mostrar comentarios más antiguos
Hey i had binary map of aphere's net The map (180x360 matrix for az,el) cover 24% of the sphere and Represents Camera field of view. I want plot the sphere, only where the binary map are true. And where ita false to make no sphere (or sphere with transparency 100%, II add pic of the camera field of view (before make it binary map)
Respuestas (1)
What about plot3?
[x,y,z] = sphere(20);
[az,el] = meshgrid(200:5:250,0:5:20);
[x1,y1,z1] = sph2cart(az*pi/180,el*pi/180,1);
plot3(x1,y1,z1,'.r')
surface(x,y,z,'facecolor','none','edgecolor',[1 1 1]/2)
axis equal
3 comentarios
sarel aharoni
el 19 de Sept. de 2021
Editada: sarel aharoni
el 19 de Sept. de 2021
darova
el 20 de Sept. de 2021
DId you try to replace black pixels with NaN?
sarel aharoni
el 20 de Sept. de 2021
Categorías
Más información sobre Surface and Mesh Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
