I am receiving the error "Error using filter. Invalid data type. Input arrays must be numeric or logical." in the code
Mostrar comentarios más antiguos
ecg = load('matlab_matrix.mat')
Fs = 200;
B_lp_1 = [1 zeros(1,5) -2 zeros(1,5) 1]/32;
A_lp_1 = [1 -2 1];
ecg_lp = filter(B_lp_1,A_lp_1,ecg); %Error here
ecg_lp = ecg_lp/max(ecg_lp);
Link for matlab_matrix.mat : https://drive.google.com/file/d/1TEwaK_w0GuQrT8vVUPB1BUCSSOYA2R6j/view?usp=share_link
How to rectify this error?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Single-Rate Filters en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!