Error using / .

1 次查看(过去 30 天)
jay jay
jay jay 2022-12-8
回答: Torsten 2022-12-8
Problem with / when I run the code.
k= k0*e^(-Q/RT)
k = k0 * exp((-Q)/(R*T))

回答(1 个)

Torsten
Torsten 2022-12-8
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))

类别

Help CenterFile Exchange 中查找有关 Linear Algebra 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by