Info

この質問は閉じられています。 編集または回答するには再度開いてください。

matlab) what should I do more to plot this function?

1 回表示 (過去 30 日間)
hyunmin
hyunmin 2014 年 3 月 12 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
a=52.9*10^-12
x=0 : 900*10^-12
y=[(4*pi*(x^2))]*[(2*(2^0.5)/(81*(15)^0.5))*((1/a)^(1.5))*((x/a)^2)*(exp(-(x/(3*a))))]^2
I just want to plot this long function. what should I do?

回答 (1 件)

Walter Roberson
Walter Roberson 2014 年 3 月 12 日
The syntax
x = A : B
starts at A and increments by 1, stopping at the last value <= B.
0 <= 900*10^-12 so 0 : 900*10^-12 includes 0. Then (0+1) is not <= 900*10^-12 so nothing else is included.
I suggest you see linspace(). I also suggest you read http://www.mathworks.com/help/matlab/ref/power.html
  1 件のコメント
hyunmin
hyunmin 2014 年 3 月 12 日
thanks! I solve it!

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by