Invalid use of operator when trying to input function

5 visualizaciones (últimos 30 días)
Joshua Cabral
Joshua Cabral el 9 de Jun. de 2022
Comentada: Stephen23 el 9 de Jun. de 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?

Respuestas (1)

KSSV
KSSV el 9 de Jun. de 2022
Editada: KSSV el 9 de Jun. de 2022
Read about MATLAB element by element operations.
t = linspace(0,0.001);
v = 12-8*exp(-200000*t)+800000*t.*exp(-200000*t);

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by