Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. figure('Name','Insurance claims as a function of time')
  2. t=59
  3. for i=1:100
  4. vec=0
  5. x=0
  6. while x<t
  7. if rand<=(2+cos(pi*x/182.5))/3
  8. vec=[vec x];
  9. end
  10. x=x-log(rand)/3
  11. end
  12. plot(vec,1:1:numel(vec))
  13. hold on
  14. end
  15. title('Insurance claims as a function of time')
  16. xlabel('days')
  17. ylabel('total claims')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement