plotting sphere and rectangle mesh
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
need help on plotting something like this :

any idea ?
0 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 23 Jun. 2015
Bearbeitet: Azzi Abdelmalek
am 23 Jun. 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 Kommentare
Azzi Abdelmalek
am 23 Jun. 2015
Bearbeitet: Azzi Abdelmalek
am 23 Jun. 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)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!