How can i fix this code with ploting a function

조회 수: 1 (최근 30일)
Wenchen Liu
Wenchen Liu 2022년 12월 13일
편집: VBBV 2022년 12월 13일
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."

답변 (1개)

VBBV
VBBV 2022년 12월 13일
편집: VBBV 2022년 12월 13일
fplot(@(x) 16*exp(0.25*x),[0 10]) % exp is exponential function,
  댓글 수: 1
VBBV
VBBV 2022년 12월 13일
exp is a matlab function. All function definitions begin with ' ( '

댓글을 달려면 로그인하십시오.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by