How can I calculate MSE when different length of vector?

4 visualizaciones (últimos 30 días)
DongShin Yang
DongShin Yang el 22 de Nov. de 2016
Comentada: DongShin Yang el 22 de Nov. de 2016
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.

Respuestas (1)

Walter Roberson
Walter Roberson el 22 de Nov. de 2016
MSE is not meaningful when the vectors are different length.
  3 comentarios
DongShin Yang
DongShin Yang el 22 de Nov. de 2016
If I add 0 for matching the vectors, is it alright_ Thank you.
DongShin Yang
DongShin Yang el 22 de Nov. de 2016
The code makes same length of the vectors.
Tk = 2.34, 5.342, 0
h = 0.5, 1 , 1.5

Iniciar sesión para comentar.

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by