I have read a ~40 second speech signal into MATLAB. I need to delete this signal by 8 seconds and add zeros to the last segment to make it 8 seconds long. How do I do this?
sound_del = sound(1:(length(sound) - 8*Fs)); % gets rid of last 8 seconds
sound_padded = [sound_del zeros(1, 8*Fs)]; % Adds 8 seconds of zeros
I need to delete this signal by 8 seconds and add zeros...
Whaaaa?I would like to pad the last 8 seconds with zeros instead of deleting them.
| Thread starter | Similar threads | Forum | Replies | Date |
|---|---|---|---|---|
|
|
Deleting my attachments | Feedback and Suggestions | 3 | |
|
|
Efficiently replace old MYSQL table data while deleting the old one | Programming & Languages | 2 | |
|
|
Is it bad to keep deleting OBD codes? | General Electronics Chat | 45 | |
| J | Deleting account | Feedback and Suggestions | 9 | |
| N | [Forum Help] Deleting alerts | Off-Topic | 1 |