THE AUDITORY MODELING TOOLBOX

This documentation page applies to an outdated major AMT version. We show it for archival purposes only.
Click here for the documentation menu and here to download the latest AMT (1.6.0).

View the code

Go to function

AMTREDOFILE - Determine if file should be redone

Usage

doit=amtredofile(filename,mode);

Description

amtredofile(file,mode) returns 1 if the file should be redone, based on the setting described in mode, otherwise is returns 0.

mode may one of the following flags:

'autorefresh' Re-calculate the file if it does not exist. Return 1 if the file exist, otherwise 0. This is the default
'refresh' Always recalculate the file.
'cached' Always use the cached version. Throws an error if the file does not exist.