subeen

결과보고서 변경

No preview for this file type
[data, fs] = audioread('rubber.wav');
data_fft = fft(data);
plot(abs(data_fft(:,1)));
xlim([0 500])
xlabel("Frequency")
ylabel("Amplitude")
ylim([0 110])
set(gcf,'Color','w')
......@@ -6,8 +6,8 @@
% Write a WAVE (|.wav|) file in the current folder.
load ('handel.mat')
filename = 'test.wav';
audiowrite(filename,cc/3000,Fs);
clear cc Fs
audiowrite(filename,data/3000,Fs);
clear data Fs
%%
% Read the data back into MATLAB using |audioread|.
......
......@@ -32,7 +32,7 @@ void loop() {
Serial.println(sum);
delayMicroseconds(805);
//analogWrite(DAC1, sum);
if(millis()>15000 + setUpTime){
if(millis()>10000 + setUpTime){
Serial.println("Recording end");
logfile.close();
while(1){}
......
No preview for this file type
No preview for this file type