⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ar_spec.m

📁 Matlab 马尔科夫计算工具包
💻 M
字号:
function [p,f] = ar_spec (a,var,ns);% function [p,f] = ar_spec (a,var,ns);% Get spectrum from AR coefficients % a     vector of AR coefficients% var   variance of noise term% ns    samples per seconda=a(:)';a=[1,a];b=[];c=1;d=1;f=[];lam=var;     t=1;th=poly2th(a,b,c,d,f,lam,t);specinfo=th2ff(th);nrows=size(specinfo,1);p=specinfo(2:nrows,2);          % the actual spectrumf=[0.5*ns/128:0.5*ns/128:0.5*ns]';show=0;if show==1  figure  plot(f,p);end  % To get the spectral error bars we need to input more info into the% theta matrix - then do :% e=specinfo(2:nrows,3);          % the spectral error bars

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -