Why can't I use fplot command ?

조회 수: 2 (최근 30일)
Ege Can Çilesiz
Ege Can Çilesiz 2020년 12월 20일
답변: the cyclist 2020년 12월 20일
t= -2:0.001:4;
x_t= (50.*exp(-3.82.*t)).*heaviside(t);
h_t= (25.*t.*exp(-1.91*t)).*heaviside(t);
fplot(x_t,t)
Error: Error using fplot (line 145)
Invalid parameter '-2 ...'.
Can you explain why am I getting this error ?

답변 (1개)

the cyclist
the cyclist 2020년 12월 20일
fplot expects a function as input. I think you want the plot command instead, which expects numerical vector input ...
plot(x_t,t)

카테고리

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

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by