After filtering my EEG signals using a FIR band pass filter I am getting the following result .kindly tell if it is right or wrong?
It's hard to tell on the picture, but it looks like the curve labeled "original" is more band-limited than the curve labeled "fi...

7 years ago | 0

Function definitions are not permitted at the prompt or in scripts
You can use anonymous functions from the command line (or in a script). Compared to named functions, they are quite limited, tho...

7 years ago | 0

How to use mod function in this question
t=1:24; N=No*exp(k*t); plot(t(1:2:end), N(1:2:end), 'kx-');

7 years ago | 0

| accepted

FFT Peaks Resolver Signal
t=0:(1/80000):(79999/80000); r_sin=sin(2*pi*5000*t).'; r_cos=sin(2*pi*5000*t).'; If applied to synthetic input sign...

7 years ago | 0

| accepted

how to correct this error
Make sure that matAB has as many rows as Y_norm has elements.

7 years ago | 0

How to know the frequency from spectrogram image?
The frequency is plottet on the vertical (y-) axis. The color indicates amplitude, so it's probably in dB.

7 years ago | 0

how to process *.emg data in matlab?
Get the description of the file format (it sounds highly proprietary) from the manual of the device, or from the manufacturer of...

7 years ago | 0

Matrix Multiplication by a vector of Ones - How to write mathematically
That is just a regular matrix multiplication, with the second "matrix" having only one column.

7 years ago | 0

How to approximate a square wave signal from arbitrary known signals
I would try the plain vanilla approach first: Express the square wave as a linear combination of the given arbitrary signals, an...

7 years ago | 0

Inverse of filter function
In the z domain, the transfer function of a filter H(z) is B(z)/A(z). The inverse of the transfer function is A(z)/B(z). Howe...

7 years ago | 3

| accepted

Question

filtfilt initial condition calculation ... can someone explain it?
Can someone explain how to get from the article "Determining the initial states in forward-backward filtering, IEEE Transactions...

7 years ago | 0 answers | 2

### 0

Initialize filter so that filtered output begins with initial value of the input
Oops. That was supposed to be an answer, not a comment. So I'm posting it again as an answer. y(n) = y(n-1)*(1-a) + a*x(n) ...

7 years ago | 0

What is 'z' in the formula for a discrete PID controller?
1/(z-1) is equal to the infinite sum (z^-1) + (z^-2) + (z^-3) + ...; applied to a signal, this means the sum of all input sample...

7 years ago | 1

| accepted

What is 'z' in the formula for a discrete PID controller?
z is the variable of a transfer function in the z-domain. (Basically, z^-1 means a time shift of one sample backwards in time...

7 years ago | 1

Question

How do I design filters with unconventional parameters?
Hello, I am looking for a way to design filters with parameters that are different from what MatLABs filter design functions ...

7 years ago | 1 answer | 0

### 1

Adding EMG Signal With 50Hx Sinosoidal wave. Not getting it correct
What is the scale of emg(:,2) myNoise may have a different scale than emg(:, 2) and become too small to display once th...

8 years ago | 1

| accepted

For loop trouble!
I assume you want to keep the intermediate values of u? In that case, use u(:, 1) = [1; 1; 1] (or u = [1; 1; 1]). Then you ca...

8 years ago | 0

Question

Am I using yulewalk() correctly?
I am trying to figure out if I am using the yulewalk function (signal processing toolbox) correctly. In a basic example, I tr...

8 years ago | 1 answer | 0