matlab plot

profileassassinood
run_sound_processing.m

% start fresh clear all close all clc % read in wav file [my_sound,fs] = audioread('my_sound.wav'); % play recording soundsc(my_sound,fs) % plot soundwav sample_indices = [1:1:length(my_sound)]; plot(sample_indices,my_sound) xlabel('sample indices') ylabel('Volts') title('sound wave') grid on % plot sound wave against time N = length(my_sound); %time = linspace(0,8,N); Ts = 1/fs; time = [0:1:length(my_sound)-1].*Ts; figure plot(time,my_sound) xlabel('time in seconds') ylabel('Volts') title('sound wave') grid on my_one = my_sound(7383:1.844e4); my_two = my_sound(1.844e4:3.069e4); my_three = my_sound(3.069e4:4.44e4); my_four = my_sound(4.44e4:end); % nowjumble the woreds my_sound2 = [my_four; my_one; my_three; my_two]; pause(10) % other type of sound processing pause(10) soundsc(flipud(my_sound),fs) % add noise to sound my_sound3 = my_sound + .01.*randn(length(my_sound),1); soundsc(my_sound3,fs)