⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 p6_25.m

📁 Advanced Engineering Mathematics using MATLAB by Harman, Dabney, Richert,书中全部源码
💻 M
字号:
% P6_25.M Plot Legendre polynomials%  P1-P5 over [-1,1]x=-1:0.01:1;p1=x;p2=1/2*(3*x.^2-1);p3=1/2*(5*x.^3-3*x);p4=1/8*(35*x.^4-30*x.^2+3);p5=1/8*(63*x.^5-70*x.^3+15*x);plot(x,p1,'-',x,p2,'*',x,p3,'+',x,p4,'--',x,p5)legend('p1','p2','p3','p4','p5')title('Legendre polynomials for n=1 to 5')ylabel('Pn(x)')xlabel('x')

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -