Plot the function on graph

조회 수: 3 (최근 30일)
Ekta
Ekta 2025년 2월 7일
답변: Star Strider 2025년 2월 7일

y = sqrt(9x + b) forina-2, b = 3 (i1) a = 3 , b = 2 (m) * a = 2 , b = 2 over the interval [0,5]

답변 (2개)

Sam Chak
Sam Chak 2025년 2월 7일
Look up the documentation plot(). There are plenty of simple examples that you can learn to plot it yourself.

Star Strider
Star Strider 2025년 2월 7일
Consiider fplot.
I have n o idea what ‘forina’ refers to, however the rest is straightforward —
b = 2;
y = @(x) sqrt(9*x + b);
figure
fplot(y, [0 5])
grid
Also see the documentation on Anonymous Functions if you are not familiar with them.
.

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

태그

제품


릴리스

R11.1

Community Treasure Hunt

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

Start Hunting!

Translated by