フィルターのクリア

how to plot y = m*x+d*g+d*​(g^(1/k)+b​^2+(b-x)^2​)^k;

2 ビュー (過去 30 日間)
john birt
john birt 2011 年 2 月 20 日
A very basic question but I cannot seem to find any such easy plot examples online. I wish to plot
y = m*x+d*g+d*(g^(1/k)+b^2+(b-x)^2)^k
like plot(x,y), the following does not work
t = 0:.1:20; m=0.1; d=0.1; g=0.1; b=0.1; k=0.3; y = m*t+d*g+d*(g^(1/k)+b^2+(b-t)^2)^k; ezplot(t,y)
please help a hopeless matlab coder (i.e me!)
thanks

採用された回答

Paulo Silva
Paulo Silva 2011 年 2 月 20 日
x = 0:.1:20;
m=0.1;
d=0.1;
g=0.1;
b=0.1;
k=0.3;
y = m*x+d*g+d*(g^(1/k)+b^2+(b-x).^2).^k;
plot(x,y)
Another way to do it:
x = 0:.1:20;
m=0.1;
d=0.1;
g=0.1;
b=0.1;
k=0.3;
y =@(x) m*x+d*g+d*(g^(1/k)+b^2+(b-x).^2).^k;
ezplot(y)
  1 件のコメント
john birt
john birt 2011 年 2 月 20 日
thank you so much for your time and wisdom

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by