Setting starting position of sphere.

2 views (last 30 days)
ZK
ZK on 20 Mar 2014
Commented: ZK on 20 Mar 2014
Hi, How can I set a default rotation position of:
[Xs Ys Zs]=sphere(80);

Accepted Answer

Mischa Kim
Mischa Kim on 20 Mar 2014
Edited: Mischa Kim on 20 Mar 2014
ZK, do you mean setting the sphere origin? If yes, simply add the coordinates of the origin:
[x,y,z] = sphere(80);
surf(x+1,y+2,z+3);
  2 Comments
ZK
ZK on 20 Mar 2014
Exactly, thank You.
ZK
ZK on 20 Mar 2014
Sorry, changed of colours was at first looking like solution. I need to set another side of sphere to startup position when figure is created.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!