
theta=linspace(0,2*pi,400); rou=4*sin(2*theta); polar(theta,rou)
^>> x = -2:0.1:2;
>> y = exp(-(x.^bai2));
>> theta = linspace(0, 2*pi);
>> rho = sin(2*theta);
>> t1 = linspace(0,30,1000);
>> x3 = 3*t1./(1+t1.^3);
>> y3 = 3*t1.^2./(1+t1.^3);
>> t2 = linspace(0,2*pi);
>> x4 = t2 - sin(t2);
>> y4 = 1 - cos(t2);
>> subplot(2,2,1);plot(x,y);title('概率曲線 y = exp(-x^2)')
>> subplot(2,2,2);polar(theta,rho),title('四葉玫瑰線 p = sin(2*t)')
>> subplot(2,2,3);plot(x3,y3);title('葉形線');
【Θ∈(0,2π 寫出用matlab繪制四葉玫瑰線P=sin2Θ)的程序】>> subplot(2,2,4);plot(x4,y4);title('擺線');
擴(kuò)展資料:
四葉玫瑰線(four-leaved的一種.定長線段AB =2a,它的兩個(gè)端點(diǎn)在垂直兩直線上滑動(dòng),從兩直線的交點(diǎn)O向線段AB作垂線OM,垂足M的軌跡稱一’為四葉玫瑰線(見圖).其極坐標(biāo)方程為P=a sin 2B 。
^clc;clear
subplot(2,2,1)
ezplot('exp(-x^bai2)')
subplot(2,2,2)
ezpolar('sin(2*t)')
subplot(2,2,3)
t=0:pi/100:2*pi;
x=3*t./(1+t.^3);
y=3*t.^2./(1+t.^3);
參考資料來源:百度百科-四葉玫瑰線
猜你喜歡
- 我想要個(gè)沒人用的王者號(hào)可以嗎?沒有防沉迷的………謝謝哦
- 抽煙的十大好處是什么呢…?
- ? LOL啟動(dòng)游戲突然提示“未知的directx錯(cuò)誤,英雄聯(lián)盟無法啟動(dòng),請(qǐng)確保你的顯卡更新
- 2020款豐田“皇冠”正式回來,全系進(jìn)口,預(yù)計(jì)5月上市!
- “三個(gè)代表”重要思想是什么?
- gh3536與·gh3044哪個(gè)強(qiáng)度高
- 0—1000的所有合數(shù) 求0至1000的合數(shù)表
- 歌詞里帶‘風(fēng)箏’的歌曲
- 消防安全“四知四會(huì)”中的“四知”是指
- 我國的"國家憲法日"是哪一天
