my result and the book result are different. where is wrong?

1 view (last 30 days)
i have r and theta boundary. i try to and y plane horizontal, Sx is vertical plane.x and y depend variable r and theta, so x=r.*cos(theta) and y=r.*sin(theta).but something is wrong. my result and the book result are different.my result is:
the codes:
  3 Comments
Bugra
Bugra on 10 Dec 2014
its not about viewing angle. when look at the cross the plane u see diffence.
Star Strider
Star Strider on 11 Dec 2014
@Bugra — Please re-post your original question here.
If this is a new problem, ask a new Question. Very few people pay attention to Questions with Accepted Answers, and they are unlikely to respond to them even then.
(The original Question involved the difference between a plot in the textbook and the plot the code in the textbook produced. The Answer was that the book plot used a different value for the radius than the text did, so the plots looked slightly different. The code and the plot figure .png were included.)

Sign in to comment.

Accepted Answer

Star Strider
Star Strider on 10 Dec 2014
The book plot cuts off at 0.15 in x and y, your plot cuts off at 0.2. That’s the only difference I see.
Change ‘r’ to:
r = linspace(0.02, 0.15, 20); %20 values between 0.02 and 0.15
and add an axis call after the mesh call:
axis([0 0.2 0 0.2 zlim])
and you reproduce the book plot.
  4 Comments
Bugra
Bugra on 10 Dec 2014
thank you so much. i understand the difference now thanks to you. i think the book use wrong range in graph.i appreciated.
Star Strider
Star Strider on 10 Dec 2014
My pleasure!
The book definitely uses a different range for ‘r’ than the one it wants you to plot.

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!