problem in filtfilt function

4 次查看(过去 30 天)
neeraj
neeraj 2011-8-20
i am working on a project using fdatool. I have a problem in filtfilt function. This function is not working. My program is
A=fopen('A_DATA.TXT');
A_DATA=fread(A);
ya=filtfilt(Num,Den,A_DATA);
C=fopen('C_DATA.TXT');
C_DATA=fread(C);
yc=filtfilt(Num,Den,C_DATA);
G=fopen('G_DATA.TXT');
G_DATA=fread(G);
yg=filtfilt(Num,Den,G_DATA);
T=fopen('T_DATA.TXT');
T_DATA=fread(T);
yt=filtfilt(Num,Den,T_DATA);
y=ya.^2+yc.^2+yg.^2+yt.^2;
y=y/max(y);
plot(y);
Here A_DATA.TXT, C_DATA.TXT,G_DATA.TXT,T_DATA.TXT are binary sequence text file. num, den are filter coefficient which have been exported through fdatool.
filtfilt function is not working.
Please tell me what will i do?
  1 个评论
the cyclist
the cyclist 2011-8-20
Several things in your question make it very difficult to help you:
- You did not use the code-formatting button, so your code is very hard to read.
- We do not have access to your data files, so we can't understand specifically what might be causing your error.
- You don't mention the actual error message you are getting, or whether you simply get a result that you don't think makes sense.
The best thing for getting a rapid answer would be if you could create a small dataset that causes the error you are seeing, and post code with real data, without making us guess at the possible contents of your data files.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Windows 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by