Advertisement
Guest User

Untitled

a guest
May 25th, 2015
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. smax = 0.7838531572;
  2. steps=smax/1000;
  3. n=1000;
  4. x=zeros(0,n);
  5. y=zeros(0,n);
  6. c=0;
  7. p=0;
  8. counter=0;
  9.  
  10. for b=0:steps:smax
  11. counter=counter+1;
  12. p = @(s) 0.06598252621*exp(((-0.06222716681)./(s.^3)+0.1292039801))./((((0.01250766053)./(s.^3))-0.02597).^0.4.*s.^4);
  13. c= integral(p,0,b);
  14. x(counter)=b;
  15. y(counter)=c;
  16. end
  17.  
  18. plot(x,y)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement