comparison testPrograms/testOME.m @ 38:c2204b18f4a2 tip

End nov big change
author Ray Meddis <rmeddis@essex.ac.uk>
date Mon, 28 Nov 2011 13:34:28 +0000
parents 25d53244d5c8
children
comparison
equal deleted inserted replaced
37:771a643d5c29 38:c2204b18f4a2
1 function testOME(paramsName, paramChanges) 1 function testOME(paramsName, paramChanges)
2 % testOME compute the stapes response at a number of frequencies 2 % testOME compute the external resonance and
3 % and compares the stapes displacement with in vivo data 3 % stapes response at a number of frequencies
4 % It compares the stapes displacement against human in vivo data
4 % collected by Huber et al.2001. 5 % collected by Huber et al.2001.
5 % e.g. 6 % paramsName: name of file in parameterStore containing model parameters
7 % paramchanges: string array of changes to parameters.
8 % this can be omitted or {} is acceptable argument
9 %
6 % testOME('Normal',{}) 10 % testOME('Normal',{})
7 11
8 savePath=path; 12 savePath=path;
9 addpath (['..' filesep 'utilities'],['..' filesep 'MAP']) 13 addpath (['..' filesep 'utilities'],['..' filesep 'MAP'])
10 14
15 % default arguments
11 if nargin<2 16 if nargin<2
12 paramChanges=[]; 17 paramChanges=[];
18 end
19 if nargin<1
20 paramsName='Normal';
13 end 21 end
14 22
15 sampleRate=50000; 23 sampleRate=50000;
16 24
17 dt=1/sampleRate; 25 dt=1/sampleRate;