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