calculate the value by using a formula

2 vues (au cours des 30 derniers jours)
Chathu
Chathu le 18 Fév 2015
Commenté : Chathu le 20 Fév 2015
How to calculate the error(pls see the attachment-pg1)? (data and formula is written in the attachment) Do i have to use a for loop here? How to solve this problem?

Réponse acceptée

Michael Haderlein
Michael Haderlein le 18 Fév 2015
Dou you mean
err=sqrt(sum((M-P).^2)/numel(M));
I guess "i" does not go to infinity but only to 2000 and the data in your file is incomplete and should have 2000 values each (M and P).
  7 commentaires
Torsten
Torsten le 20 Fév 2015
err=sqrt(sum((M(1:minL)-P(1:minL)).^2)/minL);
Best wishes
Torsten.
Chathu
Chathu le 20 Fév 2015
@ Torsten- Perfect !!!
Finally i obtained estimated values for the error. Thank you sooo much. Appreciate it.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by