Re: [問題] 雙紐線(r,θ)轉(x,y)後畫圖已回收

看板MATLAB作者 (MATLAB程式編輯員)時間15年前 (2010/05/28 12:06), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
※ 引述《sbhskyboy (風之後裔)》之銘言: : 各位大大好,小的遇到困難 : 請求各位大大協助。 : 題目如下 : 雙紐線,r^2=a^2*cos2θ : 用直角坐標(x,y)表示出曲線方程式 : 並且畫圖 : 其中,x=r*cosθ,y=r*sinθ : 麻煩各位大大熱心解答 ------------------------------------------------ >> a = 2; >> t = 0:.1:2*pi; >> r = ((a^2).*cos(2.*t)).^0.5; >> polar(t,r) Warning: Imaginary parts of complex X and/or Y arguments ignored > In polar at 180 >> z=pol2cart(t,r)' ------------------------------------------------------ 結果有複數.看一下結果OK不OK.... -- 1.MATLAB programming 2.ASPEN process simulation package 3.FORTRN programming 4.Advance Engineering Mathematics 5.Process Control Theory 6.Chemical Engineering Basic Theory(Kinetic.thermodynamics.transport) 7.Numerical Method and Analysis 8.MATLAB Toolbox.Simulink system basic design -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 113.160.148.219
文章代碼(AID): #1B_q4wt0 (MATLAB)
文章代碼(AID): #1B_q4wt0 (MATLAB)