Invalid use of operator when trying to input function
Afficher commentaires plus anciens
>> 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 commentaire
Stephen23
le 9 Juin 2022
"What am i doing wrong?"
There is no .+ operator:
Réponses (1)
Read about MATLAB element by element operations.
t = linspace(0,0.001);
v = 12-8*exp(-200000*t)+800000*t.*exp(-200000*t);
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!