how can I solve these problems using MatLab? 1.Use the plot command to plot the function f ( x ) = x 2 − 10 √ x + 2 for 0 ≤ x ≤ 5 . 2.Use the plot command to plot the function f ( x ) = ( 0.5 x 4 + 1.1 x 3 − 0.9 x 2 ) e − 0.7 x for − 3 ≤ x ≤ 10 .

 採用された回答

madhan ravi
madhan ravi 2018 年 11 月 1 日
編集済み: MathWorks Support Team 2024 年 6 月 11 日

6 投票

syms x %requires symbolic toolbox
f = 2 * x - 10 * sqrt ( x ) + 2
figure
fplot(f,[0 5])
f1 = ( 0.5 * x * 4 + 1.1 * x * 3 - 0.9 * x * 2 ) * exp(1) - 0.7 * x
figure
fplot(f1,[-3 10])
%alternatively, you can use fplot, which is part of base MATLAB
f = @(x) x.^2 -10*sqrt(x) +2
fplot(f,[0 5])

2 件のコメント

madhan ravi
madhan ravi 2018 年 11 月 1 日
you can use fplot by declaring the variable as symbolic like the above shown example
madhan ravi
madhan ravi 2018 年 11 月 1 日
if there is something which is not clear let know else accept the answer so that its understood that the question is solved.

サインインしてコメントする。

その他の回答 (1 件)

Mahanthesh
Mahanthesh 2024 年 3 月 19 日

0 投票

F(x) =x+x**2

カテゴリ

ヘルプ センター および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by