Invalid use of operator when trying to input function

>> t = linspace(0,0.001);
>> v = 12-8*exp(-200000*t).+800000*t*exp(-200000*t);
v = 12-8*exp(-200000*t).+800000*t*exp(-200000*t);
Invalid use of operator.
>>
What am i doing wrong?

回答 (1 件)

KSSV
KSSV 2022 年 6 月 9 日
編集済み: KSSV 2022 年 6 月 9 日

1 投票

Read about MATLAB element by element operations.
t = linspace(0,0.001);
v = 12-8*exp(-200000*t)+800000*t.*exp(-200000*t);

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

製品

リリース

R2021b

タグ

質問済み:

2022 年 6 月 9 日

コメント済み:

2022 年 6 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by