声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 2392|回复: 1

[编程技巧] Warning: Rank deficient 这样的警告怎么处理

[复制链接]
发表于 2008-4-9 09:44 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
我的程序是要用Pmcov求最大熵谱:结果出现Warning: Rank deficient, rank = 6,  tol =   3.7899e-014.
> In signal\private\arparest at 68
  In armcov at 24
  In signal\private\arspectra at 69
  In pmcov at 57
  In amplitude_single at 45
程序如下:
clear all;
clc;

a1=1.;
a2=1.;
a3=1.;
f1=10.1;
f2=10.2;
f3=10.3;
fai1=1.;
fai2=2;
fai3=3;
ntotal=100;
dt=0.005;
fs=1./dt;
t=0:dt:(ntotal-1)*dt;
   
x=a1*cos(2*pi*f1*t+fai1)+a2*cos(2*pi*f2*t+fai2)+a3*cos(2*pi*f3*t+fai3);

figure
subplot(311)
plot(t,x)
xlabel('t')
ylabel('A')

order=round(length(x)/3)+1;%定阶
nfft=16384;
[xpsd,f]=pmcov(x,order,nfft,fs);

[ 本帖最后由 eight 于 2008-4-9 11:37 编辑 ]
回复
分享到:

使用道具 举报

发表于 2008-5-21 13:46 | 显示全部楼层
也碰到类似警告,同问下~~!!
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-9-23 09:26 , Processed in 0.054612 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表