建立符号变量a111.zip

  • PUDN用户
    了解作者
  • Visual C++
    开发工具
  • 13KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 0
    下载次数
  • 2018-11-18 21:39
    上传日期
完美的预测未来数据,简单易懂,都有说明 非常容易上手
建立符号变量a111.zip
  • 建立符号变量a111.docx
    16.6KB
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta name="generator" content="pdf2htmlEX"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css"> <link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css"> <link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/6269914f0990925c044d3afe/raw.css"> <script src="https://static.pudn.com/base/js/compatibility.min.js"></script> <script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script> <script> try{ pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({}); }catch(e){} </script> <title></title> </head> <body> <div id="sidebar" style="display: none"> <div id="outline"> </div> </div> <div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/6269914f0990925c044d3afe/bg1.jpg"><div class="c x0 y1 w2 h2"><div class="t m0 x1 h3 y2 ff1 fs0 fc0 sc0 ls0 ws0">%<span class="ff2">&#24464;<span class="_ _0"> </span></span>PZ -----SDJU---<span class="ff2">&#31105;&#27490;&#36716;&#21457;</span></div><div class="t m0 x1 h3 y3 ff1 fs0 fc0 sc0 ls0 ws0">%<span class="ff2">&#24314;&#31435;&#31526;&#21495;&#21464;&#37327;<span class="_ _0"> </span></span>a(<span class="ff2">&#21457;&#23637;&#31995;&#25968;</span>)<span class="ff2">&#21644;<span class="_ _0"> </span></span>b(<span class="ff2">&#28784;&#20316;&#29992;&#37327;</span>)</div><div class="t m0 x1 h4 y4 ff1 fs0 fc0 sc0 ls0 ws0">syms a b;</div><div class="t m0 x1 h4 y5 ff1 fs0 fc0 sc0 ls0 ws0">c = [a b]';</div><div class="t m0 x1 h3 y6 ff1 fs0 fc0 sc0 ls0 ws0">%<span class="ff2">&#21407;&#22987;&#25968;&#21015; </span>A</div><div class="t m0 x1 h4 y7 ff1 fs0 fc0 sc0 ls0 ws0">A = [174<span class="_ _1"> </span>179<span class="_ _2"> </span>183<span class="_ _2"> </span>189<span class="_ _2"> </span>207<span class="_ _2"> </span>234<span class="_ _2"> </span>220.5 256<span class="_ _3"> </span>270<span class="_ _2"> </span>285];</div><div class="t m0 x1 h4 y8 ff1 fs0 fc0 sc0 ls0 ws0">n = length(A);</div><div class="t m0 x1 h3 y9 ff1 fs0 fc0 sc0 ls0 ws0">%<span class="ff2">&#23545;&#21407;&#22987;&#25968;&#21015; </span>A <span class="ff2">&#20570;&#32047;&#21152;&#24471;&#21040;&#25968;&#21015; </span>B</div><div class="t m0 x1 h4 ya ff1 fs0 fc0 sc0 ls0 ws0">B = cumsum(A);</div><div class="t m0 x1 h3 yb ff1 fs0 fc0 sc0 ls0 ws0">%<span class="ff2">&#23545;&#25968;&#21015; </span>B <span class="ff2">&#20570;&#32039;&#37051;&#22343;&#20540;&#29983;&#25104;</span></div><div class="t m0 x1 h4 yc ff1 fs0 fc0 sc0 ls0 ws0">for i = 2:n</div><div class="t m0 x1 h4 yd ff1 fs0 fc0 sc0 ls0 ws0"> C(i) = (B(i) + B(i - 1))/2; </div><div class="t m0 x1 h4 ye ff1 fs0 fc0 sc0 ls0 ws0">end</div><div class="t m0 x1 h4 yf ff1 fs0 fc0 sc0 ls0 ws0">C(1) = [];</div><div class="t m0 x1 h3 y10 ff1 fs0 fc0 sc0 ls0 ws0">%<span class="ff2">&#26500;&#36896;&#25968;&#25454;&#30697;&#38453; </span></div><div class="t m0 x1 h4 y11 ff1 fs0 fc0 sc0 ls0 ws0">B = [-C;ones(1,n-1)];</div><div class="t m0 x1 h4 y12 ff1 fs0 fc0 sc0 ls0 ws0">Y = A; Y(1) = []; Y = Y';</div><div class="t m0 x1 h3 y13 ff1 fs0 fc0 sc0 ls0 ws0">%<span class="ff2">&#20351;&#29992;&#26368;&#23567;&#20108;&#20056;&#27861;&#35745;&#31639;&#21442;&#25968; </span>a(<span class="ff2">&#21457;&#23637;&#31995;&#25968;</span>)<span class="ff2">&#21644;<span class="_ _0"> </span></span>b(<span class="ff2">&#28784;&#20316;&#29992;&#37327;</span>)</div><div class="t m0 x1 h4 y14 ff1 fs0 fc0 sc0 ls0 ws0">c = inv(B*B')*B*Y<span class="_ _4"></span>;</div><div class="t m0 x1 h4 y15 ff1 fs0 fc0 sc0 ls0 ws0">c = c';</div><div class="t m0 x1 h4 y16 ff1 fs0 fc0 sc0 ls0 ws0">a = c(1); b = c(2);</div><div class="t m0 x1 h3 y17 ff1 fs0 fc0 sc0 ls0 ws0">%<span class="ff2">&#39044;&#27979;&#21518;&#32493;&#25968;&#25454;</span></div><div class="t m0 x1 h4 y18 ff1 fs0 fc0 sc0 ls0 ws0">F = []; F(1) = A(1);</div><div class="t m0 x1 h4 y19 ff1 fs0 fc0 sc0 ls0 ws0">for i = 2:(n+5)</div><div class="t m0 x1 h4 y1a ff1 fs0 fc0 sc0 ls0 ws0"> F(i) = (A(1)-b/a)<span class="_ _5"></span>/e<span class="_ _5"></span>xp(a*(i-1))+ b/a;</div><div class="t m0 x1 h4 y1b ff1 fs0 fc0 sc0 ls0 ws0">end</div><div class="t m0 x1 h3 y1c ff1 fs0 fc0 sc0 ls0 ws0">%<span class="ff2">&#23545;&#25968;&#21015; </span>F <span class="ff2">&#32047;&#20943;&#36824;&#21407;</span>,<span class="ff2">&#24471;&#21040;&#39044;&#27979;&#20986;&#30340;&#25968;&#25454;</span></div><div class="t m0 x1 h4 y1d ff1 fs0 fc0 sc0 ls0 ws0">G = []; G(1) = A(1);</div><div class="t m0 x1 h4 y1e ff1 fs0 fc0 sc0 ls0 ws0">for i = 2:(n+5)</div><div class="t m0 x1 h3 y1f ff1 fs0 fc0 sc0 ls0 ws0"> G(i) = F(i) - F(i-1); %<span class="ff2">&#24471;&#21040;&#39044;&#27979;&#20986;&#26469;&#30340;&#25968;&#25454;</span></div><div class="t m0 x1 h4 y20 ff1 fs0 fc0 sc0 ls0 ws0">end</div><div class="t m0 x1 h3 y21 ff1 fs0 fc0 sc0 ls0 ws0">disp('<span class="ff2">&#39044;&#27979;&#25968;&#25454;&#20026;&#65306;</span>');</div><div class="t m0 x1 h4 y22 ff1 fs0 fc0 sc0 ls0 ws0">G</div><div class="t m0 x1 h3 y23 ff1 fs0 fc0 sc0 ls0 ws0">%<span class="ff2">&#27169;&#22411;&#26816;&#39564;</span></div><div class="t m0 x1 h3 y24 ff1 fs0 fc0 sc0 ls0 ws0">%<span class="ff2">&#27169;&#22411;&#26816;&#39564;</span></div></div></div><div class="pi" data-data='{"ctm":[1.611850,0.000000,0.000000,1.611850,0.000000,0.000000]}'></div></div> </body> </html>
评论
    相关推荐
    • 灰色预测.zip
      可以使用本程序直接对相关数据进行预测,较为简单省时,只需要更改矩阵中的代码以及下部分图像中的坐标即可
    • 灰色预测.zip
      完成了年份和人口的灰色预测模型。其具体的含义是:如果某一系统的全部信息已知为白色系统,全部信息未知为黑箱系统,部分信息已知,部分信息未知,那么这一系统就是灰色系统。一般地说,社会系统、经济系统、生态...
    • 灰色预测.rar
      基于灰色预测,指数平滑预测的几个MATLAB程序,对于预测类问题的数学建模,可以说是必备程序。
    • 灰色预测.zip
      matlab灰色预测模型代码,仅供参考,非原创。
    • 灰色预测.zip
      本算例属于GM(1,1)程序简单,效果还好,能对数据短期预测,误差较小
    • 灰色预测模型
      本资源的名字是灰色预测,主要是通过使用MATLAB通过编辑预测步骤,以及相关的代码,然后根据实际数据进行预测 。
    • 灰色预测 评估 建模
      灰色系统理论认为对既含有已知信息又含有本知或非确定信息的系统进行预测,就是对在一定范围内变化的,与时间有关的灰色过程的预测。...灰色预测就是利用这种规律建立灰色模型对灰色系统进行预测。
    • 灰色预测.zip
      灰色预测法是一种对含有不确定因素的系统进行预测的方法。灰色预测是对既含有已知信息又含有不确定信息的系统进行预则,就是对在一定范围内 变化的、与时间有关的灰色过程进行预测。
    • 灰色预测.zip
      灰色预测的简单的介绍与代码,希望能对大家有所帮助真的真的
    • 灰色预测.rar
      合理有效的关于matlab的灰色预测方法