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