问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

在matlab中像buttord,butter,pburg这些函数是已经定义好的吗?可以直接用吗?

发布网友 发布时间:2022-05-09 22:22

我来回答

2个回答

热心网友 时间:2023-10-25 00:36

在命令窗口输入open buttord 即可打开该函数的源代码,并且可以修改该函数
修改之后保存在你的工作区间work里面即可调用

热心网友 时间:2023-10-25 00:36

function varargout = pburg(x,p,varargin)
%PBURG Power Spectral Density (PSD) estimate via Burg's method.
% Pxx = PBURG(X,ORDER) returns the PSD of a discrete-time signal vector X
% in the vector Pxx. Pxx is the distribution of power per unit frequency.
% The frequency is expressed in units of radians/sample. ORDER is the
% order of the autoregressive (AR) model used to proce the PSD. PBURG
% uses a default FFT length of 256 which determines the length of Pxx.
%
% For real signals, PBURG returns the one-sided PSD by default; for
% complex signals, it returns the two-sided PSD. Note that a one-sided
% PSD contains the total power of the input signal.
%
% Pxx = PBURG(X,ORDER,NFFT) specifies the FFT length used to calculate
% the PSD estimates. For real X, Pxx has length (NFFT/2+1) if NFFT is
% even, and (NFFT+1)/2 if NFFT is odd. For complex X, Pxx always has
% length NFFT. If empty, the default NFFT is 256.
%
% [Pxx,W] = PBURG(...) returns the vector of normalized angular
% frequencies, W, at which the PSD is estimated. W has units of
% radians/sample. For real signals, W spans the interval [0,Pi] when
% NFFT is even and [0,Pi) when NFFT is odd. For complex signals, W
% always spans the interval [0,2*Pi).
%
% [Pxx,F] = PBURG(...,Fs) specifies a sampling frequency Fs in Hz and
% returns the power spectral density in units of power per Hz. F is a
% vector of frequencies, in Hz, at which the PSD is estimated. For real
% signals, F spans the interval [0,Fs/2] when NFFT is even and [0,Fs/2)
% when NFFT is odd. For complex signals, F always spans the interval
% [0,Fs). If Fs is empty, [], the sampling frequency defaults to 1 Hz.
%
% [Pxx,W] = PBURG(...,'twosided') returns the PSD over the interval
% [0,2*Pi), and [Pxx,F] = PBURG(...,Fs,'twosided') returns the PSD over
% the interval [0,Fs). Note that 'onesided' may be optionally specified,
% but is only valid for real X. The string 'twosided' or 'onesided' may
% be placed in any position in the input argument list after ORDER.
%
% PBURG(...) with no output arguments plots the PSD estimate in dB per
% unit frequency in the current figure window.
%
% EXAMPLE:
% randn('state',1); x = randn(100,1);
% y = filter(1,[1 1/2 1/3 1/4 1/5],x); % Fourth order AR filter.
% pburg(y,4,[],1000); % Uses the default NFFT of 256.
%
% See also PCOV, PMCOV, PYULEAR, PMTM, PMUSIC, PEIG, PWELCH, PERIODOGRAM,
% ARBURG, PRONY, SPECTRUM/BURG, DSPDATA/PSD.

% Author(s): R. Losada and P. Pacheco
% Copyright 1988-2004 The MathWorks, Inc.
% $Revision: 1.26.4.5 $ $Date: 2004/04/13 00:18:07 $

error(nargchk(2,5,nargin))

method = 'arburg';
[Pxx,freq,msg,units,Sxx,options] = arspectra(method,x,p,varargin{:});
error(msg);

if nargout==0,
freq = {freq};
if strcmpi(units,'Hz'),
freq = {freq{:},'Fs',options.Fs};
end
hpsd = dspdata.psd(Pxx,freq{:},'SpectrumType',options.range);

% Create a spectrum object to store in the PSD object's metadata.
hspec = spectrum.burg(p);
hpsd.Metadata.setsourcespectrum(hspec);

plot(hpsd);

else
% Assign output arguments.
varargout = {Pxx,freq,Sxx}; % Pxx=PSD, Sxx=PS
end

% [EOF] pburg.m
声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
为什么来大姨妈胸会胀 少儿学什么舞蹈 青年学什么舞蹈好 成年人学什么舞蹈 福州企业最低工资标准 2013年厦门的底薪是多少 生产要素的需求有哪些性质 生产要素的需求有何特点? 什么是生产要素需求 微观经济学要素需求什么是条件要素需求?它和要素需求有什么不同?_百度... 跪求matlab中buttord 的定义 7.0里没定义这个函数 呜呜 matlab butter函数 MATLAB中buttord用法??? matlab滤波中buttord函数的参数Wp和Ws该如何设置呢 buttord在matlab中需要定义吗 用Matlab实现滤波,用buttord和butter函数? 洛阳哪家火锅店好吃? 重庆神寿鱼坊怎么样?我想加盟神寿鱼坊 新手win10家庭版系统驱动未签名怎么安装 门面里面的牛肉汤的正确做法 牛肉汤怎样做才好吃 学韩式半永久小纹身纹眉眼唇多少钱 半永久纹身多少钱 半永久的心电图小纹身多少钱 半永久纹身和普通纹身价格一样吗 在手指上纹身大概多少钱,纹九个 珠江广场怎么样?好不好?值不值得买? 半永久纹身上色多少钱 琴海居周边环境怎么样?生活便利吗? 珠江广场的周边配套 matlab buttord函数 'z' matlab中buttord 函数中的WP,WS是模拟低通还是模拟高通的值 matlab里没有巴特沃斯低通滤波器,哪位大大教教我怎么添加,助人为乐者,一生平安~~~~ 急!如何用MATLAB构建理想低通滤波器,巴特沃斯低通滤波器,指数低通滤 ... 有matlab实现一个巴特沃斯滤波器 matlab低通滤波程序,怎么用 matlab一段简单的程序,麻烦注释每一句的意思. ???Attempt to reference field of non-structure array.matlab中的buttord,问题出在哪了?? 《云南虫谷》:为了搞笑而搞笑,这部电影拍的怎么样? 求云南虫谷电影百度云资源 奇幻电影《云南虫谷》,让人尴尬又不失礼貌,像游戏闯关一样吗? 云南虫谷高清版有吗 怎样才能养活金鱼 怎样才能养好宠物? 怎样能养好宠物? 怎样才能养好宠物啊? 怎样才能养好宠物 家庭怎样才能养好猫? 半导体的特点 半导体的导电能力随外界温度的变化而变化的性质称作什么?