필터 지우기
필터 지우기

Plotting a function over an interval

조회 수: 1 (최근 30일)
Ali Baig
Ali Baig 2018년 8월 17일
편집: Torsten 2018년 8월 17일
I am trying to plot a function in which one term is (2^(-1/a))*(1+x)^(1+1/a). When a is very small, for example a=10^-4 or even smaller, this term turns to NaN. How can I plot this function?
  댓글 수: 9
Ali Baig
Ali Baig 2018년 8월 17일
I am trying to plot for ''a'' up to 10^-6 and the simplification propsed by Hamming works up to this value.
Torsten
Torsten 2018년 8월 17일
편집: Torsten 2018년 8월 17일
x=linspace(0,1,40);
a=1e-12;
y=(1+x).*((1+x)/2).^(1/a);
plot(x,y)
works for me.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 2-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