Matlab codes for financial models

源代码在线查看: splines.m

软件大小: 31 K
上传用户: zhuying0000
关键词: financial Matlab models codes
下载地址: 免注册下载 普通下载 VIP

相关代码

				x=1:10;
				y = [4 2.5 -2 -1 2 5 4 6 4.5 3];
				x2=1:0.05:10;
				p = polyfit(x,y,5)
				y2=polyval(p,x2);
				plot(x,y,'o',x2,y2)
				p = polyfit(x,y,10);
				y2=polyval(p,x2);
				plot(x,y,'o',x2,y2)
				y2=interp1(x,y,x2,'spline');
				plot(x,y,'o',x2,y2)
							

相关资源