Steinhart-Hart equation and a dataset

20 ビュー (過去 30 日間)
Joel22
Joel22 2020 年 10 月 29 日
コメント済み: Wilmer Schroer 2021 年 2 月 4 日
I have a set of 21 data points of tempurate(T) and resistance(R). I need to calculate the coefficients for the Steinhart-Hart equation:

回答 (1 件)

Rishabh Mishra
Rishabh Mishra 2020 年 11 月 4 日
Hi,
Based on your description of the issue, I would like to make some assumptions stated below:
  • R = Column vector consisting resistance values
  • T = Column vector consisting temperature values
  • A,B,C = co-efficient of the equation
Use the code below:
p = polyfit( log(R) , 1./T , 4);
p(4), p(3) & p(1) are the calculated values for A, B & C respectively.
Hope this helps.
  2 件のコメント
Wilmer Schroer
Wilmer Schroer 2021 年 2 月 4 日
This answer is false. The Steinhart-Hart equation has no 2nd degree polynominal. When you use polyfit, it will fit a curve with the first, second, third and fourth polynominal. The resulting fit is thus not the Steinhart-Hart fit but just a regular 4th degree polynominal fit.
When using polyfit, you should use polyfit(log( R ), 1./T, 3). This is because it calculates N+1 polynomials instead of N (so N has to be three).
Wilmer Schroer
Wilmer Schroer 2021 年 2 月 4 日
I suggest you use the cftool add on and fit a custom function

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeInterpolation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by