資源簡(jiǎn)介
用matlab實(shí)現(xiàn)混沌理論中的相空間重構(gòu)代碼,很好用的工具!
代碼片段和文件信息
function?[xndn]?=?PhaSpaRecon(staum)
%?混沌序列的相空間重構(gòu)?(phase?space?reconstruction)
%?[xn?dn?xn_cols]?=?PhaSpaRecon(s?tau?m)
%?輸入?yún)?shù):????s??????????混沌序列(列向量)
%???????????????tau????????重構(gòu)時(shí)延
%???????????????m??????????重構(gòu)維數(shù)
%?輸出參數(shù):????xn?????????相空間中的點(diǎn)序列(每一列為一個(gè)點(diǎn))
%???????????????dn?????????一步預(yù)測(cè)的目標(biāo)(行向量)
[rowscols]?=?size(s);
if?(rows>cols)
????len?=?rows;
????s?=?s‘;
else
????len?=?cols;
end
if?(nargout==2)
????
????if?(len-1-(m-1)*tau?1)
????????disp(‘err:?delay?time?or?the?embedding?dimension?is?too?large!‘)
????????xn?=?[];
?????
評(píng)論
共有 條評(píng)論