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 Center および File ExchangeOperators and Elementary Operations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by