Why isn't the plot showing up? (new on programing)

조회 수: 1 (최근 30일)
simon ericsson
simon ericsson 2021년 10월 17일
댓글: simon ericsson 2021년 10월 17일
x = linspace(-10,10,100);
y = @(x) (x.^2 + x.^2 + 3.*x)/(x.^2 + 4.*x + 5);
plot(x,y(x),'r','LineWidth',2)

채택된 답변

KSSV
KSSV 2021년 10월 17일
x = linspace(-10,10,100);
y = @(x) (x.^2 + x.^2 + 3.*x)./(x.^2 + 4.*x + 5); % element by elememnt division
plot(x,y(x),'r','LineWidth',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