필터 지우기
필터 지우기

Function not accepting all available x values

조회 수: 1 (최근 30일)
DONGUK KIM
DONGUK KIM 2020년 4월 23일
댓글: Sulaymon Eshkabilov 2020년 4월 23일
So I wrote a simple code to get a plot of a function
x = linspace(0,100,101);
y = 4*x.*(x+1) / (4*x.*(x+1) + (sin( 8*sqrt(x+1) )).^2)
plot(x,y);
and for some reason y only comes out as a single value
Is there any reason why this might be happening?

채택된 답변

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2020년 4월 23일
y = 4*x.*(x+1) ./ (4*x.*(x+1) + (sin( 8*sqrt(x+1) )).^2);

추가 답변 (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