tp@0: % Edge diffraction toolbox tp@0: % Version EDB11 15-Apr-2012 tp@0: % tp@0: % From version EDB11, all functions will start EDB11 rather than EDB1. The 1 will indicate tp@0: % version number. tp@0: % tp@0: % Main programs tp@0: % EDB1main - Calculates the specular and edge diffraction IRs and saves them in files. tp@0: % tp@0: % Read CAD file and geometry pre-processing tp@0: % EDB1readsetup - Runs the EDsetup m-file and saves all the settings in a mat-file. tp@0: % EDB1readcad - Reads a file of type .CAD and saves all the geometry data in a mat-file. tp@0: % 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: % EDB1ed2geox - Calculates 2nd- and higher-order edge-related geom. parameters. tp@0: % EDB1edgeox - Calculates some plane- and edge-related geometrical parameters. tp@0: % EDB1SorRgeo - Calculates some source- or receiver-related geometrical parameters. tp@0: % tp@0: % Find sound paths tp@0: % EDB1findpathsISESx - Finds all possible paths that include direct sound, specular, diffraction. tp@0: % EDB1diff2ISES - Gives list of paths that includes a 2nd-order diff. combination. tp@0: % EDB1diffISESx - Gives list of paths that includes a 1st-order diff. combination. tp@0: % EDB1diffNISES - Gives list of paths that includes an N-order diff. combination. tp@0: % EDB1directsound - Checks if the direct sound is valid. tp@0: % EDB1findISEStree - Constructs a list ("an ISES tree") of all possible specular-diffraction combinations. tp@0: % EDB1findis - Returns the image source coordinates. tp@0: % EDB1checkobstrpaths - Checks obstruction for a list of paths, or check if specular reflections are valid. tp@0: % EDB1checkobstr_pointtoedge - Checks obstruction for a list of point-to-edge paths. tp@0: % EDB1checkobstr_edgetoedge - Checks obstruction for a list of edge-to-edge paths. tp@0: % EDB1chkISvisible - Checks if paths from a set of IS to a set of R pass through their refl. planes. tp@0: % EDB1chkISvisiblex - Checks if paths from a set of IS to a set of R pass through their refl. planes. Extended version. tp@0: % EDB1getedgepoints - Calculates a number of edge coordinates. tp@0: % EDB1infrontofplane - Checks if a point is in front of, in plane with, or behind a list of planes. tp@0: % EDB1poinpla - Detects if one or more points are inside a number of finite planes. tp@0: % EDB1poinplax - Detects if one or more points are inside a number of finite planes. Extended version. tp@0: % EDB1speculISES - Finds the valid specular reflections by checking visibility and obstruction. tp@0: % tp@0: % Create impulse responses tp@0: % EDB1makeirs - Constructs IRs from a list of paths in an edpathsfile. tp@0: % EDB1betaoverml - Integrand function which is called for num. int. of ED IR. tp@0: % EDB1irfromslotlist - Creates an IR from a list of sample numbers and amplitudes tp@0: % EDB1wedge1st_int - Computes the 1st-order diffraction impulse response. tp@0: % EDB1wedge2nd - Computes the second-order diffraction impulse responses. tp@0: % EDB1wedgeN - Computes the Nth-order diffraction impulse responses. tp@0: % EDB1quadstep - Recursive numerical integration routine for EDB1wedge1st_int. tp@0: % tp@0: % Various plot functions tp@0: % EDB1makemovie - Makes a movie based on IRs. tp@0: % EDB1makesnapshot - Makes a snapshot of a sound field based on IRs. tp@0: % EDB1plotmodel - Plots a model which is given in an eddatafile. tp@0: % EDB1plotstackedIRs - Plots a number of IRs in a stacked way. tp@0: % EDB1plotstackedTFs - Plots a number of TFs in a stacked way. tp@0: % EDB1plotpath - Plots a model which is given in an eddatafile and one or more of the paths in an edreflpathsfile. tp@0: % tp@0: % Various string functions tp@0: % EDB1extrnums - Extracts the numerical values in a text-string, separated by a given delimiter. tp@0: % EDB1fistr - Reads a text file, line by line, until a given textstring is found. tp@0: % EDB1myvalueinput - Prints a text on the screen and waits for a numerical to be input. tp@0: % EDB1strpend - Removes a specified ending from a filename. tp@0: % tp@0: % Various numerical functions tp@0: % EDB1calcdist - Gives distances between sets of points in 3D space. tp@0: % EDB1compress7 - tp@0: % EDB1coordtrans1 - Transforms one set of cartesian coordinates to edge-related cylindrical coordinates. tp@0: % EDB1coordtrans2 - Transforms two sets of cartesian coordinates to edge-related cylindrical coordinates. tp@0: % EDB1creindexmatrix - Creates a matrix with index numbers. tp@0: % EDB1cross - Stripped down version of Matlab's built in function cross. tp@0: % tp@0: % Function for editing paths tp@0: % EDB1editpathlist - Does some semi-automatic editing of an edpathsfile.