I want to 3D plot the functions below but nothing appear on the figure, what should I add/change?
1 次查看(过去 30 天)
显示 更早的评论
a = 0.25;
theta = 0;
r = 0.25;
x = (30/2)*((1-(a^2/r^2))+(1+3*(a^4/r^4)-4*(a^2/r^2)*cos(2*theta)))
y = (30/2)*((1+(a^2/r^2))-(1+3*(a^4/r^4)*cos(2*theta)))
z = -(30/2)*((1-3*(a^4/r^4)+2*(a^2/r^2))*sin(2*theta))
plot3(x,y,z)
0 个评论
采纳的回答
Javier Bastante
2016-3-16
You are just giving 1 value to a,r ant theta. You have to give them different values using a=ini:h:fin loops. Hope it works with that. Regards
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!