- 积分
- 0
- 注册时间
- 2005-4-26
- 仿真币
-
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2005-8-15 10:42:22
|
显示全部楼层
来自 华南理工大学
Re:请教高手,如何用matlab里的hilbert变换
补充程序清单如下:
x=ecgsignal();
N=length(x);
u=1:N;
p=polyfit(u,x,10)
xi=linspace(0, N, 300);
z=polyval(p, xi);
plot(u, x, ' o ' ,u, x, xi, z, ' : ' )
h1=hilbert(z);
plot(u(1:N),real(h1(1:N))),hold on;
plot(u(1:N),imag(h1(1:N)),':'),hold off;
运行时候出现如下错误
??? Maximum recursion limit of 500 reached. Use set(0,'RecursionLimit',N)
to change the limit. Be aware that exceeding your available stack space can
crash MATLAB and/or your computer.
Error in ==> ismember at 110
s = sort(s(:));
救命,我的毕业设计 |
|