Error using / .

2 visualizaciones (últimos 30 días)
jay jay
jay jay el 8 de Dic. de 2022
Respondida: Torsten el 8 de Dic. de 2022
Problem with / when I run the code.
k= k0*e^(-Q/RT)
k = k0 * exp((-Q)/(R*T))

Respuestas (1)

Torsten
Torsten el 8 de Dic. de 2022
If T is an array of multiple temperatures, you have to use elementwise division:
k = k0 * exp((-Q) ./ (R*T))
instead of
k = k0 * exp((-Q)/(R*T))

Categorías

Más información sobre Operators and Elementary Operations en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by