Gaussian fit in a log scale

17 ビュー (過去 30 日間)
S  P-W
S P-W 2019 年 10 月 1 日
回答済み: Dinesh Yadav 2019 年 10 月 4 日
Hi
I have a set of data, plotted in log-scaled Y-axis. I would like to fit a Gaussian function to the data but in a log-scaled one. I mean, I want the Gaussian fit to be shown in the log-scaled plot.
could you tell me how to make it? sionce when I use the "createFit" Function, it shows the fitting curve in a normal Y-axis not a log-scaled one
all the very best

回答 (1 件)

Dinesh Yadav
Dinesh Yadav 2019 年 10 月 4 日
Kindly use
set(gca,'YScale','log');
after the plot command to convert the y axis to log scale.

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by