how do I fit a double exponential equation? there are two double exponential waveforms and I need to fit the equation into each waveform

17 ビュー (過去 30 日間)
This is how the waveforms look like. I transferred the datas from Excel. The data was obtained using an oscilloscope when I compared the lightning voltage waveforms for with and without an attenuator. Now my job is to fit the double exponential equation into each of these waveforms to compare the difference for the two situations (with and without attenuator).
The double exponential equation for lightining voltage is:
n.JPG

採用された回答

Walter Roberson
Walter Roberson 2019 年 4 月 20 日
You can use cftool with a custom equation.
Be warned that sum of exponential are notoriously difficult to fit. If your initial values are not quite close to the best values then it is quite common for the fitting coefficients to be very different from the best coefficients.
  4 件のコメント
Siti Fatimah Mohamed Hisham
Siti Fatimah Mohamed Hisham 2019 年 4 月 20 日
oh. how should/do I put the bounds so to obtain better fitting?
Walter Roberson
Walter Roberson 2019 年 4 月 20 日
Click on Fit Options to enter upper and lower bounds. You will not be able to directly code to ensure that d>b. However you can rewrite d as b+doffset and set the lower bound on doffset to 0.

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

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2013a

Community Treasure Hunt

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

Start Hunting!

Translated by