![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数学建模
ShuwenLau
Know thyself, nothing in excess.
展开
-
Matlab中数据的标准化处理
%function std_attrValues= vecStd(attrValues) %if iscolumn(attrValues)~=1% 如果不是指标数据列向量,则提示错误 %warndlg('输入数据必需为列向量,数据标准化处理失败,返回空值!','失败!'); %std_attrValues=[]; % 调用错误时返回空值 %else m=length(attrValues); %原创 2015-08-22 10:28:54 · 14611 阅读 · 0 评论 -
主成分分析Matlab实现
%数据导入及处理 clc clear all A=xlsread('coach.xlsx','B2:H16'); %数据标准化处理 a=size(A,1); b=size(A,2); for i=1:b SA(:,i)=(A(:,i)-mean(A(:,i)))/std(A(:,i)); end %计算相关系数矩阵的特征值和特征向量 CM=corrcoef(SA);%计算相关系数矩阵 [V原创 2015-08-22 14:17:35 · 3627 阅读 · 0 评论 -
元胞自动机 Matlab实现表面张力
clf clear all %build the GUI %define the plot button plotbutton=uicontrol('style','pushbutton',... 'string','Run',... 'fontsize',12,... 'position',[100,400,50,20],... 'callback','run=1原创 2015-08-20 15:29:23 · 1714 阅读 · 0 评论 -
层次分析法(AHP) 将评判矩阵转化为权重矩阵代码实现 MATLAB
% AHP权重计算 Matlab程序 % 数据读入 clc clear all A=[1 2 6;1/2 1 4;1/6 1/4 1]; %评判矩阵 %一致性检验和权向量计算 [n,n]=size(A); [v,d]=eig(A); r=d(1,1); CI=(r-n)/(n-1); RI=[0 0 0.58 0.90 1.12 1.24 1.32 1.41 1.45 1.49 1.52 1.54原创 2015-08-21 13:40:41 · 6459 阅读 · 0 评论 -
元胞自动机 生命游戏 Matlab实现 GUI
clf clear all %build the GUI %define the plot button plotbutton=uicontrol('style','pushbutton',... 'string','Run',... 'fontsize',12,... 'position',[100,400,50,20],... 'callback','run=1原创 2015-08-20 15:02:11 · 8495 阅读 · 0 评论