Curve fit tool and log scale

61 ビュー (過去 30 日間)
Hye Rim
Hye Rim 2011 年 5 月 26 日
編集済み: Igor Gitelman 2021 年 7 月 31 日
Hello!
I have a series of data and using the custom equation, I could fit the data on the theoritical equation. I would like to see the graph and fit curve in log scale but I don't know I to change the x values in log scale. Coyuld you please let me know how to do it? Haev a nice day!
Hye Rim

採用された回答

Arnaud Miege
Arnaud Miege 2011 年 5 月 26 日
From the curve fitting tool, once you're done with the fitting, click on File -> Generate Code to generate the MATLAB code for your fit. You can then run that code with whatever data you want, but more to the point you can also modify it. Find the part of the code where the plotting is done, and replace the plot command by semilogx, as Laura suggested.
  6 件のコメント
armin farshbaf
armin farshbaf 2017 年 6 月 10 日
this way you could only get at base 10 logarithm, do u have any idea for base 2 ?!
Igor Gitelman
Igor Gitelman 2021 年 7 月 31 日
編集済み: Igor Gitelman 2021 年 7 月 31 日
just take
log2(x)
from yor data - x.

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

その他の回答 (1 件)

Laura Proctor
Laura Proctor 2011 年 5 月 26 日
I think you're looking for the function SEMILOGX.

カテゴリ

Help Center および File ExchangeLinear and Nonlinear Regression についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by