plotting sphere and rectangle mesh
22 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
need help on plotting something like this :
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151519/image.png)
any idea ?
0 Commenti
Risposta accettata
Azzi Abdelmalek
il 23 Giu 2015
Modificato: Azzi Abdelmalek
il 23 Giu 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 Commenti
Azzi Abdelmalek
il 23 Giu 2015
Modificato: Azzi Abdelmalek
il 23 Giu 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)
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Surface and Mesh Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!