Borrar filtros
Borrar filtros

How to plot function using matlab?

469 visualizaciones (últimos 30 días)
Zainab Alabdulali
Zainab Alabdulali el 1 de Nov. de 2018
Respondida: Mahanthesh el 19 de Mzo. de 2024
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 .

Respuestas (2)

madhan ravi
madhan ravi el 1 de Nov. de 2018
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])
  2 comentarios
madhan ravi
madhan ravi el 1 de Nov. de 2018
you can use fplot by declaring the variable as symbolic like the above shown example
madhan ravi
madhan ravi el 1 de Nov. de 2018
if there is something which is not clear let know else accept the answer so that its understood that the question is solved.

Iniciar sesión para comentar.


Mahanthesh
Mahanthesh el 19 de Mzo. de 2024
F(x) =x+x**2

Community Treasure Hunt

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

Start Hunting!

Translated by