Gaussian fit in a log scale
조회 수: 10 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (1개)
Dinesh Yadav
2019년 10월 4일
Kindly use
set(gca,'YScale','log');
after the plot command to convert the y axis to log scale.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!