Azzera filtri
Azzera filtri

Error using / .

1 visualizzazione (ultimi 30 giorni)
jay jay
jay jay il 8 Dic 2022
Risposto: Torsten il 8 Dic 2022
Problem with / when I run the code.
k= k0*e^(-Q/RT)
k = k0 * exp((-Q)/(R*T))

Risposte (1)

Torsten
Torsten il 8 Dic 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))

Categorie

Scopri di più su Linear Algebra in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by