Advertisement
zz4fap

Untitled

Jan 8th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.33 KB | None | 0 0
  1. clear all;close all;clc
  2.  
  3. M = 10;
  4.  
  5. n = M;
  6. u = -0.3:0.0001:0.3;
  7. fu = zeros(1,length(u));
  8. for u_idx=1:1:length(u)
  9.     bessel1 = besseli(n,(1/4*u(u_idx).^2));
  10.     bessel2 = besseli(n+1,(1/4*u(u_idx).^2));
  11.     fu(u_idx) = exp(-1./(4*u(u_idx).^2))*( ( (8*n*u(u_idx).^2 - 1)*bessel1 + bessel2 ) / (4*abs(u(u_idx)).^3) );
  12. end
  13.  
  14. plot(u,fu)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement