load Cchord.mat
n = numel(y)
t = 0:1:n-1
t = t/fs
plot(t,y)
yfft = abs(fft(y))
f = 0:1:n-1
f = f*fs/n
plot(f,yfft)
xlim([0 1000])
[s, Fs] = audioread('thankyou.wav');
Ts = 1/Fs % time between two adjacent samples
N = length(s)
t = (0:N-1)*Ts % generate time values
t = (0:length(s)-1)/Fs % generate time values otherly
figure(1), plot(t,s);
soundsc(s,Fs) %play the sound
load Cchord.mat
n = numel(y)
t = 0:1:n-1
t = t/fs
plot(t,y)
yfft = abs(fft(y))
f = 0:1:n-1
f = f*fs/n
plot(f,yfft)
xlim([0 1000])
[s, Fs] = audioread('thankyou.wav');
Ts = 1/Fs % time between two adjacent samples
N = length(s)
t = (0:N-1)*Ts % generate time values
t = (0:length(s)-1)/Fs % generate time values otherly
figure(1), plot(t,s);
soundsc(s,Fs) %play the sound
load Cchord.mat
n = numel(y)
t = 0:1:n-1
t = t/fs
plot(t,y)
yfft = abs(fft(y))
f = 0:1:n-1
f = f*fs/n
plot(f,yfft)
xlim([0 1000])
[s, Fs] = audioread('thankyou.wav');
Ts = 1/Fs % time between two adjacent samples
N = length(s)
t = (0:N-1)*Ts % generate time values
t = (0:length(s)-1)/Fs % generate time values otherly
figure(1), plot(t,s);
soundsc(s,Fs) %play the sound
load Cchord.mat
n = numel(y)
t = 0:1:n-1
t = t/fs
plot(t,y)
yfft = abs(fft(y))
f = 0:1:n-1
f = f*fs/n
plot(f,yfft)
xlim([0 1000])
[s, Fs] = audioread('thankyou.wav');
Ts = 1/Fs % time between two adjacent samples
N = length(s)
t = (0:N-1)*Ts % generate time values
t = (0:length(s)-1)/Fs % generate time values otherly
figure(1), plot(t,s);
soundsc(s,Fs) %play the sound
load Cchord.mat
n = numel(y)
t = 0:1:n-1
t = t/fs
plot(t,y)
yfft = abs(fft(y))
f = 0:1:n-1
f = f*fs/n
plot(f,yfft)
xlim([0 1000])
[s, Fs] = audioread('thankyou.wav');
Ts = 1/Fs % time between two adjacent samples
N = length(s)
t = (0:N-1)*Ts % generate time values
t = (0:length(s)-1)/Fs % generate time values otherly
figure(1), plot(t,s);
soundsc(s,Fs) %play the sound
load Cchord.mat
n = numel(y)
t = 0:1:n-1
t = t/fs
plot(t,y)
yfft = abs(fft(y))
f = 0:1:n-1
f = f*fs/n
plot(f,yfft)
xlim([0 1000])
[s, Fs] = audioread('thankyou.wav');
Ts = 1/Fs % time between two adjacent samples
N = length(s)
t = (0:N-1)*Ts % generate time values
t = (0:length(s)-1)/Fs % generate time values otherly
figure(1), plot(t,s);
soundsc(s,Fs) %play the sound