Error: Line 80: SWITCH expression must be a scalar or a character vector

Sir,
I got this error while applying HP and BP filter frequencies to the raw signal and i cannot vizualise the signal
Kindly sort out the error and help me.

Thank you sir,
S.Lavanya

The issue is that the fir1.m function that is being called is the one in FiledTrip, i.e., it is shadowing the one from Matlab.

Check this post: