Invalid use of operator when trying to input function

5 vues (au cours des 30 derniers jours)
Joshua Cabral
Joshua Cabral le 9 Juin 2022
Commenté : Stephen23 le 9 Juin 2022
>> 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?

Réponses (1)

KSSV
KSSV le 9 Juin 2022
Modifié(e) : KSSV le 9 Juin 2022
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 Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by