how to calculate mean square error ?

조회 수: 9 (최근 30일)
studentmatlaber
studentmatlaber 2021년 6월 29일
편집: studentmatlaber 2021년 9월 23일
Hello to everyone. I extracted the histogram of the data I have. I wrote this code for it.
I want to calculate mean square error to see its compatibility. If I did it with histfit, I would write a code like this
However, I don't know how to calculate the mean square error because I fit manually. I would be very happy if you could help with this.
  댓글 수: 3
studentmatlaber
studentmatlaber 2021년 7월 11일
@Image Analyst signalhist_poz is my data. I would be very grateful if you could help me calculate the mean square error. I still haven't found a solution
Image Analyst
Image Analyst 2021년 7월 11일
I know that. But did you see my comment? Read it again. You still have not attached your data and I'm not about to recreate it manually from a bar chart. Please give it to us in a .mat file with the paperclip icon.

댓글을 달려면 로그인하십시오.

답변 (1개)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021년 7월 11일
You have already computed in the last line of the code. Maybe you meant root mean square error. If so,
MSE = mean(fit_err.^2); % Mean square error
RMSE = sqrt(MSE); % Root mean square error
  댓글 수: 1
studentmatlaber
studentmatlaber 2021년 7월 11일
What I want to ask here is how to calculate mse without using the histfit command. I did not create the graph with red lines on the graph with the histfit command. I created this red chart with the first code I wrote. So I can't use histfit in mse code. If you want to take a look, I added my .mat file in the comments.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Two y-axis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by