daily pastebin goal
60%
SHARE
TWEET

Untitled

a guest Feb 21st, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. e = exp(1);
  2.  
  3. h = 0.4;
  4.  
  5. % Fyller med x verdier
  6. x = [0:h:4];
  7.  
  8. y = [1];
  9. L = length(x);
  10.  
  11. for z = 2 : 1 : L
  12.  
  13.     y(z) = y(z-1)+y(z-1)*h;
  14.  
  15. end
  16.  
  17. y2 = e.^x;
  18.  
  19. plot(x,y,x,y2);
  20.  
  21. xlabel('x')
  22. ylabel('y')
  23. title('suq madic')
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