We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!

15,908,768 members

i didn't know to use google.

i just couldn't find a useful answer in google.

http://www.mathworks.ch/ch/help/matlab/ref/sphere.html

http://www.mathworks.co.uk/help/matlab/ref/sphere.html

however thank you.

It has to be like it, i know how to use a builtin function of matlab but it shouldn't use any of matlab related builtin functions.

Any error message?

i try to solve it myself,then i'll put the answer here, and give you a buzz,

right?