plotting sphere and rectangle mesh
22 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
need help on plotting something like this :
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151519/image.png)
any idea ?
0 commentaires
Réponse acceptée
Azzi Abdelmalek
le 23 Juin 2015
Modifié(e) : Azzi Abdelmalek
le 23 Juin 2015
sphere(20)
axis square
You can get the coordinates x,y and z
[x,y,z]=sphere(20)
You can plot a sphere
surf(x,y,z)
4 commentaires
Azzi Abdelmalek
le 23 Juin 2015
Modifié(e) : Azzi Abdelmalek
le 23 Juin 2015
ii=-1:0.1:1
jj=-1:0.1:1
[ii1,jj1]=meshgrid(ii,jj)
surf(ii,jj,zeros(size(ii1)))
hold on
sphere(20)
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Surface and Mesh Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!