Advertisement
Guest User

Untitled

a guest
Dec 11th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. t = [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120];
  2. y = [4.99, 4.05, 3.31, 2.69, 2.19, 1.78, 1.45, 1.15, 0.96, 0.79, 0.65, 0.53, 0.44];
  3.  
  4. calcy = (5*exp(-x/36));
  5. error = abs(calcy - y);
  6.  
  7. hold on
  8.  
  9. plot(t,calcy)
  10. plot(t,y)
  11. plot(t,error)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement