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 个评论
Stephen23
2022-6-9
"What am i doing wrong?"
There is no .+ operator:
回答(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 Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!