SHARE
TWEET

Untitled

a guest May 27th, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. x = 1:0.01:10
  2. x = 1:0.01:10; A = 1;
  3. y = A * 2.718 .^(x .* (-2)).*cos(x*10); yosh=rand(1,901);
  4. y2 = y + 0.02 * yosh - 0.01
  5. y3 = y2
  6. for i = 3:898
  7. y3(i) = 0.2 *(y2(i-2) + y2(i-1) + y2(i) + y2(i+1) + y2(i+2));
  8. end;
  9. plot(x,y, "red")
  10. plot(x,y2, "green")
  11. plot(x,y3, "blue")
  12. ykv = y2.-y
  13. ykv = y2-y
  14. ykv = (y2-y).^2
  15. ykv = sum((y2-y).^2)
  16. ykv = sum((y2-y).^2)/901
  17. ykv2 = sum((y3-y2).^2)/901
  18. ykv2 = sum((y3-y).^2)/901
  19. y3^2
  20. ykv2 = sum((y3-y2).^2)/901
  21. ykv = sum((y2-y).^2)/901
  22. ykv2 = sum((y3-y).^2)/901
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top