tp@0
|
1 % Edge diffraction toolbox
|
tp@0
|
2 % Version EDB11 15-Apr-2012
|
tp@0
|
3 %
|
tp@0
|
4 % From version EDB11, all functions will start EDB11 rather than EDB1. The 1 will indicate
|
tp@0
|
5 % version number.
|
tp@0
|
6 %
|
tp@0
|
7 % Main programs
|
tp@0
|
8 % EDB1main - Calculates the specular and edge diffraction IRs and saves them in files.
|
tp@0
|
9 %
|
tp@0
|
10 % Read CAD file and geometry pre-processing
|
tp@0
|
11 % EDB1readsetup - Runs the EDsetup m-file and saves all the settings in a mat-file.
|
tp@0
|
12 % EDB1readcad - Reads a file of type .CAD and saves all the geometry data in a mat-file.
|
tp@0
|
13 % EDB1readac - EDB1readac - Reads a file of type .AC (made by e.g. Invis AC3D) and saves all the geometry data in a mat-file.
|
tp@0
|
14 % EDB1ed2geox - Calculates 2nd- and higher-order edge-related geom. parameters.
|
tp@0
|
15 % EDB1edgeox - Calculates some plane- and edge-related geometrical parameters.
|
tp@0
|
16 % EDB1SorRgeo - Calculates some source- or receiver-related geometrical parameters.
|
tp@0
|
17 %
|
tp@0
|
18 % Find sound paths
|
tp@0
|
19 % EDB1findpathsISESx - Finds all possible paths that include direct sound, specular, diffraction.
|
tp@0
|
20 % EDB1diff2ISES - Gives list of paths that includes a 2nd-order diff. combination.
|
tp@0
|
21 % EDB1diffISESx - Gives list of paths that includes a 1st-order diff. combination.
|
tp@0
|
22 % EDB1diffNISES - Gives list of paths that includes an N-order diff. combination.
|
tp@0
|
23 % EDB1directsound - Checks if the direct sound is valid.
|
tp@0
|
24 % EDB1findISEStree - Constructs a list ("an ISES tree") of all possible specular-diffraction combinations.
|
tp@0
|
25 % EDB1findis - Returns the image source coordinates.
|
tp@0
|
26 % EDB1checkobstrpaths - Checks obstruction for a list of paths, or check if specular reflections are valid.
|
tp@0
|
27 % EDB1checkobstr_pointtoedge - Checks obstruction for a list of point-to-edge paths.
|
tp@0
|
28 % EDB1checkobstr_edgetoedge - Checks obstruction for a list of edge-to-edge paths.
|
tp@0
|
29 % EDB1chkISvisible - Checks if paths from a set of IS to a set of R pass through their refl. planes.
|
tp@0
|
30 % EDB1chkISvisiblex - Checks if paths from a set of IS to a set of R pass through their refl. planes. Extended version.
|
tp@0
|
31 % EDB1getedgepoints - Calculates a number of edge coordinates.
|
tp@0
|
32 % EDB1infrontofplane - Checks if a point is in front of, in plane with, or behind a list of planes.
|
tp@0
|
33 % EDB1poinpla - Detects if one or more points are inside a number of finite planes.
|
tp@0
|
34 % EDB1poinplax - Detects if one or more points are inside a number of finite planes. Extended version.
|
tp@0
|
35 % EDB1speculISES - Finds the valid specular reflections by checking visibility and obstruction.
|
tp@0
|
36 %
|
tp@0
|
37 % Create impulse responses
|
tp@0
|
38 % EDB1makeirs - Constructs IRs from a list of paths in an edpathsfile.
|
tp@0
|
39 % EDB1betaoverml - Integrand function which is called for num. int. of ED IR.
|
tp@0
|
40 % EDB1irfromslotlist - Creates an IR from a list of sample numbers and amplitudes
|
tp@0
|
41 % EDB1wedge1st_int - Computes the 1st-order diffraction impulse response.
|
tp@0
|
42 % EDB1wedge2nd - Computes the second-order diffraction impulse responses.
|
tp@0
|
43 % EDB1wedgeN - Computes the Nth-order diffraction impulse responses.
|
tp@0
|
44 % EDB1quadstep - Recursive numerical integration routine for EDB1wedge1st_int.
|
tp@0
|
45 %
|
tp@0
|
46 % Various plot functions
|
tp@0
|
47 % EDB1makemovie - Makes a movie based on IRs.
|
tp@0
|
48 % EDB1makesnapshot - Makes a snapshot of a sound field based on IRs.
|
tp@0
|
49 % EDB1plotmodel - Plots a model which is given in an eddatafile.
|
tp@0
|
50 % EDB1plotstackedIRs - Plots a number of IRs in a stacked way.
|
tp@0
|
51 % EDB1plotstackedTFs - Plots a number of TFs in a stacked way.
|
tp@0
|
52 % EDB1plotpath - Plots a model which is given in an eddatafile and one or more of the paths in an edreflpathsfile.
|
tp@0
|
53 %
|
tp@0
|
54 % Various string functions
|
tp@0
|
55 % EDB1extrnums - Extracts the numerical values in a text-string, separated by a given delimiter.
|
tp@0
|
56 % EDB1fistr - Reads a text file, line by line, until a given textstring is found.
|
tp@0
|
57 % EDB1myvalueinput - Prints a text on the screen and waits for a numerical to be input.
|
tp@0
|
58 % EDB1strpend - Removes a specified ending from a filename.
|
tp@0
|
59 %
|
tp@0
|
60 % Various numerical functions
|
tp@0
|
61 % EDB1calcdist - Gives distances between sets of points in 3D space.
|
tp@0
|
62 % EDB1compress7 -
|
tp@0
|
63 % EDB1coordtrans1 - Transforms one set of cartesian coordinates to edge-related cylindrical coordinates.
|
tp@0
|
64 % EDB1coordtrans2 - Transforms two sets of cartesian coordinates to edge-related cylindrical coordinates.
|
tp@0
|
65 % EDB1creindexmatrix - Creates a matrix with index numbers.
|
tp@0
|
66 % EDB1cross - Stripped down version of Matlab's built in function cross.
|
tp@0
|
67 %
|
tp@0
|
68 % Function for editing paths
|
tp@0
|
69 % EDB1editpathlist - Does some semi-automatic editing of an edpathsfile.
|