Effacer les filtres
Effacer les filtres

how to generate image of spherical object ?

2 vues (au cours des 30 derniers jours)
ajeet verma
ajeet verma le 10 Juil 2017
i need spherical object in 2d matrix image, i have an example
m=1000;
n=1000;
%object
[X,Y,Z]=peaks;
Z1=imresize(Z,[m,n]);
figure,imshow(Z1,[])
here image shows peaks in 3D and similarly i need a sphere.
  1 commentaire
Adam
Adam le 10 Juil 2017
Surely a sphere in a 2d matrix is just a circle?

Connectez-vous pour commenter.

Réponse acceptée

KSSV
KSSV le 10 Juil 2017
[X,Y,Z]=sphere;
surf(X,Y,Z) ;
doc sphere

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by