Answered

Shifting a signal to the right or left

I'll try to explain with an example. Let X={1 2 3 4 5} be our sequence. s = zeros(size(X)) s={0 0 0 0 0} Right shift If we...

Shifting a signal to the right or left

I'll try to explain with an example. Let X={1 2 3 4 5} be our sequence. s = zeros(size(X)) s={0 0 0 0 0} Right shift If we...

7 months ago | 1

Question

How can I increase the notch attenuation without changing the bandwidth?

I have designed a notch filter of 50Hz cutoff frequency and 8Hz bandwidth and the sampling rate is 1500Hz as shown in the code b...

1 year ago | 1 answer | 0

Question

cascading two notch filters designed using iirnotch

Hello, I want to develop a 50 Hz notch filter for ECG denoising. While using iirnotch I'm getting around 20 dB attenuation and a...

1 year ago | 0 answers | 0

Question

Unwanted peaks in the output of a Notch filter

Hello, I recently tried to implement an IIR Notch filer that will help me remove the 50 Hz noise in the ECG signal we acquired i...

1 year ago | 0 answers | 0

Question

How to plot the phase response of dft using fft in matlab

Hello, I have a doubt, I was trying to plot the phase response of a sin wave using fft, but I got something that is kind of like...

2 years ago | 1 answer | 0

Question

Creating a GUI for an ECG arrhythmia classifier

Hello, I am working on an arrhythmia classifier using matlab. The work is almost done and now I think it will look more presenta...

2 years ago | 0 answers | 0

Question

Is there a maximum limit to the number of features given as input to a PNN? And how to find the optimum spread value?

Hello, I am trying to classify ECG arrhythmia conditions using the PNN . Right now I'm considering 5 classes. I have 52 features...

2 years ago | 1 answer | 0

Question

Error in annotation conversion

Hello, I'm trying to convert the annotations file I have to numbers and I have written the code below but for AFIB condition, I'...

2 years ago | 1 answer | 0

Question

How to select the first i columns of a matrix?

Hello, I have a nxn matrix X. I need to select the first i columns alone of the matrix within a for loop. How can I do this? I'm...

2 years ago | 1 answer | 0

Question

Can we do matrix operations on a matrix that might contain NaNs in it?

Hello, This is not any doubt in matlab but about matrices. I have a feature matrix of an ECG signal. It can have NaN elements. F...

2 years ago | 1 answer | 0

Question

writing into excel sheets while keeping the leading zeros

Hello, is there any way to keep the leading zeros in my number while saving to excel sheet as a csv file? I should be getting 00...

2 years ago | 1 answer | 0

Question

How can I read a column from a word file?

Hello, I have a word document like this and I want to read only the Type column and save it as a csv file. Is it possible in mat...

2 years ago | 1 answer | 0

Question

DIVIDING A SIGNAL INTO SHORTER SEGMENTS AND SAVING THEM

Hello, I have a signal of 30 minutes duration. It is a csv file. I want to divide it into non overlapping segments of 10 sec dur...

2 years ago | 1 answer | 0

Question

NAMING THE FILE TO BE SAVED

Hello, I have a ECG feature extraction algorithm. I want to save the extracted feature matrix as a csv file. I have done it but ...

2 years ago | 1 answer | 0

Question

WHAT IS LABEL IN FEATURE SELECTION

In terms of feature selection what does the word "label" means? I'm trying to implement a feature selection algorithm and in tha...

2 years ago | 0 answers | 0

Question

Is findpeaks same as local maxima?

Hello, I applied findpeaks to my signal and found out the local maximas. I read that it takes the local maxima by checking if t...

2 years ago | 1 answer | 0

Question

How to compensate for the delay introduced by an IIR notch filter

Hello, I'm using an IIR notch filter(using iirnotch command) to remove the powerline interference. Will there be a delay due to ...

2 years ago | 1 answer | 0

Question

Shifting a signal to the right or left

How can I shift a signal to the left or right? Is there any inbuilt command for it?

2 years ago | 3 answers | 0

Question

compensation of delay after filtering

Hello, I have a doubt. It is not related to matlab but if anyone can help me it will be great. I have a signal x[n]. I'm applyi...

2 years ago | 0 answers | 0

Question

finding zero crossings in a signal

I need to find out the zero crossing points in a signal. How can I achieve this in matlab? I tried the code below but it is not ...

2 years ago | 2 answers | 1

Question

deleting values from an array

I have an array R3. I need to eliminate those elements of R3 which are present in another, smaller array. Is there an easy meth...

2 years ago | 1 answer | 0

Question

Is swt same as algorithm atrous?

I need to implement algorithm atrous to get time invariant wavelet decomposed signals.Is it the same as applying swt? Can somebo...

2 years ago | 0 answers | 0

Question

comparing the maximum value of a matrix to the other values

Hello, I have a question. I need to compare the maximum value in an array to the other elements in an array and check if it is g...

2 years ago | 2 answers | 0

Question

function similar to count

Is there any function similar to count that can be used in an array of 1's,-1's and 0's to count the number of 1's present in a ...

2 years ago | 1 answer | 0

Question

selecting certain elements of an array

hello, I have an array of 200 elements. I'm trying to apply certain conditions to the elements in the array. I have to select 2...

2 years ago | 1 answer | 0

Question

array manipulation using location

Hello, I have an array X and another array Y which has some of the indices in array X. I need a new array which will have the X ...

2 years ago | 1 answer | 0

Question

selecting i element non overlapping subsets of an array of length n

Hello, I have an array of length n. I need to select the first i elements and manipulate it and then take the next non overlapp...

2 years ago | 2 answers | 0

Question

applying a time domain window to a wavelet domain signal

Hello, I have a wavelet domain signal which is decomposed up to 4 levels. I need to apply a window of 120ms on each level. How c...

2 years ago | 0 answers | 0

Question

finding the maximum of values after and before a specific value

hello, I have a doubt.Is it possible to find out the maximum values before and after the ith element in an array?

2 years ago | 1 answer | 0

Question

applying a time constraint to a wavelet domain signal

Hello, I have a wavelet domain signal in which I have to introduce a time constraint. I have to check the no. of maximas within...

2 years ago | 0 answers | 0