声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 2269|回复: 5

[综合讨论] 路面激励的功率谱密度怎么用MATLAB编程

[复制链接]
发表于 2016-12-4 21:03 | 显示全部楼层 |阅读模式

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

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

x
能用MATLAB函数 y=simout;>> fs=1000;
>> n=0:1/fs:1;
>> nfft=512;
>> window=boxcar(100);%矩形窗
>> noverlap=20;
>> range=' half' ;
>> [Pxx,f]=pwelch(y,window,noverlap,nfft,Fs,range);
用这个程序总是报错  错误是
??? Error using ==> welchparse at 36
The length of the segments cannot be greater than the length of the input signal.

Error in ==> welch at 40
[x,M,isreal_x,y,Ly,win,winName,winParam,noverlap,k,L,options] = ...

Error in ==> pwelch at 121
[varargout{1:nargout}] = welch(x,esttype,varargin{:});大神解释一下吧  很着急!!!!!


模型.zip

7.04 KB, 下载次数: 6

MATLAB模型 参数

回复
分享到:

使用道具 举报

发表于 2016-12-5 08:40 | 显示全部楼层
长度超过输入信号的长度了  逐行检查吧  错误应该不止这几处
 楼主| 发表于 2016-12-5 15:05 | 显示全部楼层
Generation 发表于 2016-12-5 08:40
长度超过输入信号的长度了  逐行检查吧  错误应该不止这几处

您好,我不知道错误到底在哪里。。。。参数都改过了
发表于 2016-12-5 15:55 | 显示全部楼层
逐行调试
发表于 2016-12-14 16:31 | 显示全部楼层
谢谢分享
发表于 2016-12-15 08:42 | 显示全部楼层
数据长度不对应
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

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

GMT+8, 2024-4-25 14:44 , Processed in 0.127769 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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