mfe_loadf_plotperiodogram.m

来自「Modeling and Forecasting Electricity Loa」· M 代码 · 共 23 行

M
23
字号
function mfe_loadf_plotperiodogram(stochc,obj);
%MFE_LOADF_PLOTPERIODOGRAM Auxiliary routine for MFE_LOADF.
%	MFE_LOADF_PLOTPERIODOGRAM(STOCHC,OBJ) plots the periodogram of the  
%   stochastic component STOCHC of Model A (or Model B). OBJ is a handle to 
%   the radiobuttons used to select between the models.

%   Written by Adam Misiorek and Rafal Weron (2006.09.22)
%   Copyright (c) 2006 by Rafal Weron

if get(obj.modela,'value')
    h14 = figure(14);
    set(h14,'name','Periodogram of Model A stochastic component','numbertitle','off');
else
    h15 = figure(15);
    set(h15,'name','Periodogram of Model B stochastic component','numbertitle','off');
end;    

[power,freq,maxp] = periodog(stochc);
plot(freq,power,'.-');
box on;
grid on;
xlabel('Frequency');
ylabel('Power');

⌨️ 快捷键说明

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