• 大小: 1KB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2021-07-23
  • 语言: Matlab
  • 标签: PCA  MATLAB程序  

资源简介

主成分分析(PCA)的MATLAB程序,本程序利用主成分分析进行回归分析。

资源截图

代码片段和文件信息

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clc
clear all
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%本程序利用主成分分析进行回归
%考察进口总额Y与三个自变量:国内总产值x1存储量x2总消费量x3之间的关系。
%输入数据
X=[149.34.2108.1;
   161.24.1114.8;
   171.53.1123.2;
   175.53.1126.9;
   180.81.1132.1;
   190.72.2137.7;
   202.12.1146.0;
   212.45.6154.1;
   226.15.0162.3;
   231.95.1164.3;
   239.00.7167.6];
Y=[15.916.419.019.118.820.422.726.528.127.626.3];%输出数据
Y=Y.‘;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
[zkyn]=zhuchengfenhuigui(YX)

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        780  2010-01-30 17:10  主成分分析\zcfdyzj.m

     文件       1851  2010-01-30 17:10  主成分分析\zhuchengfenhuigui.m

     目录          0  2010-01-30 17:08  主成分分析

----------- ---------  ---------- -----  ----

                 2631                    3


评论

共有 条评论