How to write this in command window
古いコメントを表示
How to write this in command window
y(t)=1-2e^(-2t)+e^(-8t)
回答 (1 件)
Ameer Hamza
2020 年 11 月 12 日
編集済み: Ameer Hamza
2020 年 11 月 12 日
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 についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!