Plotting 3d Sphere with specific radius
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Jesus Mendez
il 24 Lug 2012
Commentato: POORANI THIRUGNANA SAMBANDAM
il 13 Mag 2017
Hello!
I am trying to plot a sphere in 3D. This is what i know so far.
[x,y,z] = sphere; surf(x+a,y+b,z+c);
now i know that (a b c) means that its a shift in the x y and z axis respectively but it also affects the radius at the same time. How can i create a shift like mention above but also scaling down the radius to something lower than 1?
Cheers!
0 Commenti
Risposta accettata
David Legland
il 24 Lug 2012
Hi,
maybe by specifying the radius as a scaling factor:
surf(x*r+a, y*r+b, z*r+c);
axis equal;
3 Commenti
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!