贝塞尔函数matlab代码

贝塞尔函数matlab代码_第1张图片

 

x=-10:0.01:10;
y_0=besselj(0,x);  
y_1=besselj(1,x); %一阶,这里只画了0阶  
y_2=besselj(2,x);
y_3=besselj(3,x);
y_4=besselj(4,x);
y_5=besselj(5,x);%二阶   
h=plot(x,y_0,'',x,y_1,'',x,y_2,'',x,y_3,'',x,y_4,'',x,y_5,'');grid on;  
axis([-10,10,-1,1]);  
title('0,1,2,3,4,5阶贝塞尔函数曲线图'); legend('0阶','1阶','2阶','3阶','4阶','5阶');
xlabel('Variable X'); 
ylabel('Variable Y');
set(h,'Linesmoothing','on')
 

你可能感兴趣的:(matlab)