Filter löschen
Filter löschen

Error using / .

1 Ansicht (letzte 30 Tage)
jay jay
jay jay am 8 Dez. 2022
Beantwortet: Torsten am 8 Dez. 2022
Problem with / when I run the code.
k= k0*e^(-Q/RT)
k = k0 * exp((-Q)/(R*T))

Antworten (1)

Torsten
Torsten am 8 Dez. 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))

Kategorien

Mehr zu Linear Algebra finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by