OpenCores
URL https://opencores.org/ocsvn/vhdl_wavefiles/vhdl_wavefiles/trunk

Subversion Repositories vhdl_wavefiles

[/] [vhdl_wavefiles/] [trunk/] [sim/] [CompareWave.m] - Blame information for rev 5

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 alex008
 
2
[M fs] = wavread('oMono.wav');
3
Monox = sum(M-Mono);
4
figure
5
hold on
6
plot(Mono);
7
plot(M);
8
plot(M-Mono);
9
hold off
10
 
11
[S fs] = wavread('oStereo.wav');
12
Stereox = sum(sum(S-Stereo));
13
figure
14
hold on
15
plot(Stereo(:,2));
16
plot(S(:,2));
17
plot(S(:,2)-Stereo(:,2));
18
hold off
19
 
20
[C fs] = wavread('oCh10.wav');
21
Ch10x = sum(sum(C-Ch10));
22
figure
23
hold on
24
plot(Ch10(:,9));
25
plot(C(:,9));
26
plot(C(:,10)-Ch10(:,10));
27
hold off
28
 
29
[B fs] = wavread('oBit32.wav');
30
Bit32x = sum(sum(C-Ch10));
31
figure
32
hold on
33
plot(Stereo(:,2));
34
plot(B(:,2));
35
plot(B(:,2)-Stereo(:,2));
36
hold off

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.