필터 지우기
필터 지우기

Plotting 3d Sphere with specific radius

조회 수: 15 (최근 30일)
Jesus Mendez
Jesus Mendez 2012년 7월 24일
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!

채택된 답변

David Legland
David Legland 2012년 7월 24일
Hi,
maybe by specifying the radius as a scaling factor:
surf(x*r+a, y*r+b, z*r+c);
axis equal;
  댓글 수: 3
Nuno
Nuno 2015년 5월 9일
How i obtain the limit values of a sphere ?
POORANI THIRUGNANA SAMBANDAM
POORANI THIRUGNANA SAMBANDAM 2017년 5월 13일
Thank you so much!! It worked well!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by