problem in filtfilt function
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentario
the cyclist
el 20 de Ag. de 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.
Respuestas (0)
Ver también
Categorías
Más información sobre Windows en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!