# calculate the value by using a formula

1 view (last 30 days)

Show older comments

##### 0 Comments

### Accepted Answer

Michael Haderlein
on 18 Feb 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 Comments

### More Answers (0)

### See Also

### Categories

### Community Treasure Hunt

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

Start Hunting!