polar 命令接受極座標,將它們繪製在笛卡爾平面中,並在平面上繪製極座標網格。
以下是建立繪圖的方法。
>>t = 0:.01:2*pi; >>polar(t,sin(2*t).*cos(2*t),'--r') >> grid on % Turn on the grid