making points, rotating it, plotting.
1 次查看(过去 30 天)
显示 更早的评论
p1=[0;0] p2=[sqrt(3/4);-1/2] p3=[sqrt(3/4);1/2] p4=[0;1]
make a vector r from point p1 to p2:
r=p2-p1
construct a new vector s by rotating r 90 degree counterclockwise.
Make a new point: t2=p1+1/2*r+-1/6*sqrt(3/4)*s
repeat this between every point(p2 and p3, p3 and p4, and p4 and p1). connect these points as P1 with the 4 new points, plot it, and rotate it 120 degre two times. You should then have your final figure.
---------
I try to follow the assignment pretty strictly, but for some reason i dont get the same figure as my book has.
Anyone who can help me solving it?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Polar Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!