Problem with psdesttype in pwelch function
3 次查看(过去 30 天)
显示 更早的评论
Hi everyone,
I tried to use pwelch function to calculate PSD. I tried the example in the documentation:
Fs = 1000; t = 0:1/Fs:.296;
x = cos(2*pi*t*200)+randn(size(t));
pwelch(x,[],[],[],Fs,'twosided');
but i get the error :
Undefined function 'psdesttype' for input arguments of type 'cell'.
Anyone has an idea how to solve the problem? Matlab version is r2014a.
Thanks.
0 个评论
回答(2 个)
Honglei Chen
2014-6-23
I couldn't reproduce this. Sounds like an installation problem. Do you have Signal Processing Toolbox installed? You can use
>> ver
to check that.
0 个评论
fabio
2014-6-24
编辑:fabio
2014-6-24
1 个评论
Honglei Chen
2014-6-24
DSP Toolbox and Signal Processing Toolbox are separate product but you should have Signal Processing Toolbox if you have DSP Toolbox. This looks like your installation is corrupted but you say you can reproduce it in two MATLABs. Could you see if you have psdesttype.m in your toolbox/signal/signal/private directory? if not, you may want to talk to the customer support.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spectral Estimation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!