《matlab在数学建模中的应用》一书 所有的 源代码 - matlab数学建模 - 谷速源码
下载频道> 资源分类> matlab源码> 数学建模> 《matlab在数学建模中的应用》一书 所有的 源代码

标题:《matlab在数学建模中的应用》一书 所有的 源代码
分享到:

所属分类: 数学建模 资源类型:程序源码 文件大小: 774.45 KB 上传时间: 2019-06-15 23:31:45 下载次数: 544 资源积分:1分 提 供 者: zhangsan456 code
内容:
clear
clc
% 读入人口数据(1971-2000年)
Y=[33815 33981 34004 34165 34212 34327 34344 34458 34498 34476 34483 34488 34513 34497 34511 34520 34507 34509 34521 34513 34515 34517 34519 34519 34521 34521 34523 34525 34525 34527]
% 读入时间变量数据(t=年份-1970)
T=[1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30]
% 线性化处理
for t = 1:30, 
   x(t)=exp(-t);
   y(t)=1/Y(t);
end
% 计算,并输出回归系数B
c=zeros(30,1)+1;%c=ones(30,1)也行
X=[c,x'];
B=inv(X'*X)*X'*y'
for i=1:30,
% 计算回归拟合值    
    z(i)=B(1,1)+B(2,1)*x(i);
% 计算离差
    s(i)=y(i)-sum(y)/30;
% 计算误差    
    w(i)=z(i)-y(i);
end
% 计算离差平方和S
S=s*s';
% 回归误差平方和Q
Q=w*w';
% 计算回归平方和U
U=S-Q;
% 计算,并输出F检验值
F=28*U/Q
% 计算非线性回归模型的拟合值
for j=1:30,
    Y(j)=1/(B(1,1)+B(2,1)*exp(-j));
end
% 输出非线性回归模型的拟合曲线(Logisic曲线)
plot(T,Y)

文件列表(点击上边下载按钮,如果是垃圾文件请在下面评价差评或者投诉):

第10章/
第10章/P10-1/
第11章/
第11章/P11-1/
第12章/
第12章/P12-1/
第12章/P12-2/
第13章/
第13章/P13-1/
第14章/
第14章/P14-1/
第14章/P14-2/
第15章/
第15章/P15-1/
第15章/P15-2/
第15章/P15-3/
第15章/参赛原题/
第15章/参赛原题/B题:城市供水量预测/
第1章/
第1章/P1-1/
第3章/
第3章/P3-1/
第3章/P3-2/
第4章/
第4章/P4-1/
第4章/P4-2/
第5章/
第5章/P5-1/
第5章/P5-2/
第6章/
第6章/P6-1/
第6章/P6-2/
第7章/
第7章/P7-1/
第7章/图7-8程序/
第8章/
第8章/P8-1/
第8章/P8-2/
第9章/
第9章/P9-1/
第9章/P9-2/
第9章/P9-3/
第9章/P9-4/
第9章/P9-5/
第9章/P9-6/
第9章/P9-6/KonghuPanda/
第9章/P9-6/KonghuPanda/KonghuPanda/
第9章/P9-7/
第9章/P9-8/
第10章/P10-1/calculate_probability.m
第10章/P10-1/cpiao.m
第10章/P10-1/main.m
第10章/P10-1/nonlcon.m
第11章/P11-1/main1101.m
第12章/P12-1/Sams.m
第12章/P12-2/Gamain.m
第12章/P12-2/myfplotcircleGA.m
第13章/P13-1/2009CUMCM C题.doc
第13章/P13-1/Ch13_simulink.m
第13章/P13-1/bhk_med.wav
第13章/P13-1/重要说明.txt
第14章/P14-1/Ch17_lin.m
第14章/P14-2/Ch17_gaph.m
第14章/P14-2/关于程序14-2的运行说明.doc
第15章/P15-1/Trend.m
第15章/P15-1/data.txt
第15章/P15-1/说明.txt
第15章/P15-2/data1.txt
第15章/P15-2/gm_1_1.m
第15章/P15-2/main1502.m
第15章/P15-2/说明.txt
第15章/P15-3/BPNet.m
第15章/P15-3/CombineTwoUnits.m
第15章/P15-3/CombineUnitToBias.m
第15章/P15-3/DrawBiasedUnitOut.m
第15章/P15-3/DrawCorrelatedUnitsOut.m
第15章/P15-3/FindUnitToCombine.m
第15章/P15-3/LinearReg.m
第15章/P15-3/Main1803.m
第15章/P15-3/third.txt
第15章/P15-3/water.txt
第15章/P15-3/说明.txt
第15章/参赛原题/B题:城市供水量预测/B题数据.xls
第15章/参赛原题/B题:城市供水量预测/B题:城市供水量预测.doc
第1章/P1-1/Population.m
第3章/P3-1/main0301.m
第3章/P3-2/Changjiang.m
第4章/P4-1/GA401.m
第4章/P4-1/IfCroIfMut.m
第4章/P4-1/crossover.m
第4章/P4-1/fitnessfun.m
第4章/P4-1/mutation.m
第4章/P4-1/selection.m
第4章/P4-1/targetfun.m
第4章/P4-1/transform2to10.m
第4章/P4-2/GA402.m
第4章/P4-2/ch14_2f.m
第4章/P4-2/重要说明.txt
第5章/P5-1/PSO501.m
第5章/P5-2/PSOBP502.m
第5章/P5-2/PSOTrain.m
第5章/P5-2/重要说明.txt
第6章/P6-1/main0601.m
第6章/P6-2/main0602.m
第7章/P7-1/glyunshu.m
第7章/图7-8程序/toolboxglys.m
第8章/P8-1/Wnn0801.m
第8章/P8-2/Dwtg1.m
第8章/P8-2/image.jpg
第8章/P8-2/water1.jpg
第8章/P8-2/watermarked.jpg
第8章/P8-2/说明.txt
第9章/P9-1/Lake901.m
第9章/P9-1/lbwfun.m
第9章/P9-2/Main902.m
第9章/P9-3/Main903.m
第9章/P9-4/Main904.m
第9章/P9-5/Main905.m
第9章/P9-6/KonghuPanda/KonghuPanda001.jpg
第9章/P9-6/KonghuPanda/KonghuPanda002.jpg
第9章/P9-6/KonghuPanda/KonghuPanda003.jpg
第9章/P9-6/KonghuPanda/KonghuPanda004.jpg
第9章/P9-6/KonghuPanda/KonghuPanda005.jpg
第9章/P9-6/KonghuPanda/KonghuPanda006.jpg
第9章/P9-6/KonghuPanda/KonghuPanda007.jpg
第9章/P9-6/KonghuPanda/KonghuPanda008.jpg
第9章/P9-6/KonghuPanda/KonghuPanda009.jpg
第9章/P9-6/KonghuPanda/KonghuPanda010.jpg
第9章/P9-6/KonghuPanda/KonghuPanda011.jpg
第9章/P9-6/KonghuPanda/KonghuPanda012.jpg
第9章/P9-6/KonghuPanda/KonghuPanda013.jpg
第9章/P9-6/KonghuPanda/KonghuPanda014.jpg
第9章/P9-6/KonghuPanda/KonghuPanda015.jpg
第9章/P9-6/KonghuPanda/KonghuPanda016.jpg
第9章/P9-6/KonghuPanda/KonghuPanda017.jpg
第9章/P9-6/KonghuPanda/KonghuPanda018.jpg
第9章/P9-6/KonghuPanda/KonghuPanda019.jpg
第9章/P9-6/KonghuPanda/KonghuPanda020.jpg
第9章/P9-6/KonghuPanda/KonghuPanda021.jpg
第9章/P9-6/KonghuPanda/KonghuPanda022.jpg
第9章/P9-6/KonghuPanda/KonghuPanda023.jpg
第9章/P9-6/KonghuPanda/KonghuPanda024.jpg
第9章/P9-6/KonghuPanda/KonghuPanda025.jpg
第9章/P9-6/KonghuPanda/KonghuPanda026.jpg
第9章/P9-6/KonghuPanda/KonghuPanda027.jpg
第9章/P9-6/KonghuPanda/KonghuPanda028.jpg
第9章/P9-6/Panda.m
第9章/P9-6/重要说明.txt
第9章/P9-7/Main910.m
第9章/P9-7/grad.m
第9章/P9-7/重要说明.txt
第9章/P9-8/fun3D.m
第9章/P9-8/lianxuwuran.m
第9章/P9-8/重要说明.txt

关键词: 数学建模

Top_arrow
回到顶部
联系方式| 版权声明| 招聘信息| 广告服务| 银行汇款| 法律顾问| 兼职技术| 付款方式| 关于我们|
网站客服网站客服 程序员兼职招聘 程序员兼职招聘
沪ICP备19040327号-3
公安备案号:沪公网安备 31011802003874号
库纳格流体控制系统(上海)有限公司 版权所有
Copyright © 1999-2014, GUSUCODE.COM, All Rights Reserved