메뉴 건너뛰기

app

매트랩2(wav의 sampling 및 fft 후, magnitude)

박영식2003.12.19 10:15조회 수 5916댓글 0

    • 글자 크기
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%20022191 박영식 project #2%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

x=wavread('1.wav');
LengthFrame=200;
NoFrame=length(x)/200;

figure(1);
subplot(2,1,1); plot(x,'r');
set(gca,'color','n');
title('20022191_2 박영식 1)입력 전체 파형');
grid on;
for i=1:LengthFrame
    X(i)=Frame(5,i); %%sampling///////
end
X200=abs(fftshift(fft(X,200))); %%fft.........
subplot(2,1,2); plot(X200,'r');
set(gca,'color','n');
title('20022191_2 박영식 2)한 프레임의 파형(5th)');
grid on;
for k=1:NoFrame
    for i=1:LengthFrame
        Frame(k,i)=x(i+LengthFrame*(k-1),1);
    end
end

for i=1:LengthFrame
    X(i)=Frame(5,i);
end
% Ploting the results
figure
stem(X120,'^','fill','k'); hold on;
plot(X120,'c'); hold off;
set(gca,'color','n');
title('20022191_2 박영식 3)magnitude of 1.wav(5th)','fontsize',12)
grid on
박영식 (비회원)
    • 글자 크기
신호및시스템 해답 (by 박영식) 매트랩 소스(함수의 magnitude구하기) (by 박영식)

댓글 달기

박영식
2006.06.18 조회 2527
박영식
2005.03.25 조회 2259
박영식
2003.12.25 조회 4054
박영식
2003.12.19 조회 3615
박영식
2003.11.05 조회 17699
박영식
2003.11.05 조회 2425
박영식
2003.11.05 조회 2630
박영식
2003.11.05 조회 2327
박영식
2003.11.05 조회 2366
박영식
2003.11.05 조회 3390
박영식
2002.06.14 조회 2735
박영식
2002.04.18 조회 3541
박영식
2002.04.18 조회 3438
첨부 (0)
위로