How can i fix this code with ploting a function

1 visualización (últimos 30 días)
Wenchen Liu
Wenchen Liu el 13 de Dic. de 2022
Editada: VBBV el 13 de Dic. de 2022
I want to plot this function, that is,
N(10-N)=16e^0.25t
with interval [0,10]
and i tried:
fplot(@(x) 16*exp.^0.25*x,[0 10],)
in the command section, it says, "Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters."

Respuestas (1)

VBBV
VBBV el 13 de Dic. de 2022
Editada: VBBV el 13 de Dic. de 2022
fplot(@(x) 16*exp(0.25*x),[0 10]) % exp is exponential function,
  1 comentario
VBBV
VBBV el 13 de Dic. de 2022
exp is a matlab function. All function definitions begin with ' ( '

Iniciar sesión para comentar.

Categorías

Más información sobre Argument Definitions en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by