data = amt_load(model, fn); data = amt_load(model, fn, variable); [audio, fs] = amt_load(model, fn); sofa = amt_load(model, fn); table = amt_load(model, fn); filename = amt_load(model, fn);
model | Directory within the auxdata repository. |
fn | Filename of the auxiliary data. The filename fn must be provided with the extension. The extension determines the type of the output:
|
variable | Optional string with the name of the variable(s) to be loaded in the format of the command load. This applies only to auxdata stored as .mat files. |
data | Structure with the loaded variables. |
audio | Audio signal with the size of (time x channels). |
fs | Sampling frequency (in Hz) of audio. |
sofa | SOFA structure as output by SOFAload. |
table | Table with a matrix loaded from a CSV file and interpreted by tableread. |
filename | Absolute filename to the local file stored in the local auxdata repository. |
amt_load(model, fn) loads the auxiliary data from the file fn. The data will loaded from the directory model located in the local directory given by amt_auxdatapath, which per default is the directory auxdata located in the AMT base path.
If the file fn is not found in the local repository given by amt_auxdatapath, it will be downloaded from the remote (online) repository given by amt_auxdataurl, which is per default http://amtoolbox.org/amt-version/auxdata with version being the latest AMT version.
Note that the remote auxdata repository is versioned: The search starts with the latest AMT version, but if not found, it then continues in previous versions, going back up to AMT 1.0.0.
amt_load(model, data, variable) loads just particular variables given in the string variable. This applies to fn with the extension .mat only.