How can I calculate MSE when different length of vector?

조회 수: 4 (최근 30일)
DongShin Yang
DongShin Yang 2016년 11월 22일
댓글: DongShin Yang 2016년 11월 22일
Tk = 2.34, 5.342
h = 0.5, 1 , 1.5
How can I calculate MSE when different length of vector?
mean((h-Tk).^2) this code does not work.

답변 (1개)

Walter Roberson
Walter Roberson 2016년 11월 22일
MSE is not meaningful when the vectors are different length.
  댓글 수: 3
DongShin Yang
DongShin Yang 2016년 11월 22일
If I add 0 for matching the vectors, is it alright_ Thank you.
DongShin Yang
DongShin Yang 2016년 11월 22일
The code makes same length of the vectors.
Tk = 2.34, 5.342, 0
h = 0.5, 1 , 1.5

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

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by