1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-04-28 00:35:18 +02:00

Move library tree where it belongs

This commit is contained in:
ra
2010-01-24 09:19:39 +00:00
parent e74978ba77
commit 58caf78a86
6020 changed files with 2790154 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
% program to test 2d real fast conv
% let user select file then open it
[fname, pname] = uigetfile('*.c2d', 'select conv file');
cd(pname);
fidout=fopen(fname,'r');
% read header info
aN=fread(fidout,1,'long');
aM=fread(fidout,1,'long');
bN=fread(fidout,1,'long');
bM=fread(fidout,1,'long');
% read in data
%status=fseek(fidout,Nheader,'bof');
a=fread(fidout,aN*aM,'float');
a=reshape(a,aN,aM);
b=fread(fidout,bN*bM,'float');
b=reshape(b,bN,bM);
c=fread(fidout,(aN+bN-1)*(aM+bM-1),'float');
c=reshape(c,(aN+bN-1),(aM+bM-1));
fclose(fidout);
c2=conv2(a,b);
max(max(abs(c2-c)))