How to write this in command window

답변 (1개)

Ameer Hamza
Ameer Hamza 2020년 11월 12일
편집: Ameer Hamza 2020년 11월 12일

0 개 추천

MATLAB does not have implicit multiplication. Also, constant 'e' is not defined in MATLAB. You can create a function handle lie this
y = @(t) 1-2*exp(-2*t)+exp(-8*t)
Evaluate it like a function
y(1); % t = 1;
If you have the Symbolic toolbox, you can also write
syms t
y(t) = 1-2*exp(-2*t)+exp(-8*t);

카테고리

도움말 센터File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

질문:

2020년 11월 12일

편집:

2020년 11월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by