problem in filtfilt function

4 vues (au cours des 30 derniers jours)
neeraj
neeraj le 20 Août 2011
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 commentaire
the cyclist
the cyclist le 20 Août 2011
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.

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by