Gaussian fit in a log scale

9 visualizaciones (últimos 30 días)
S  P-W
S P-W el 1 de Oct. de 2019
Respondida: Dinesh Yadav el 4 de Oct. de 2019
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

Respuestas (1)

Dinesh Yadav
Dinesh Yadav el 4 de Oct. de 2019
Kindly use
set(gca,'YScale','log');
after the plot command to convert the y axis to log scale.

Categorías

Más información sobre Linear and Nonlinear Regression en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by