How can I calculate MSE when different length of vector?

2 次查看(过去 30 天)
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