THE AUDITORY MODELING TOOLBOX

Applies to version: 0.9.7

View the help

Go to function

amtauxdataurl - URL of the auxiliary data

Program code:

function auxURL=amtauxdataurl(newURL)
%amtauxdataurl URL of the auxiliary data
%   Usage: url=amtauxdataurl
%          amtauxdataurl(newurl)
%
%   url=AMTAUXDATAURL returns the URL of the web address containing
%   auxiliary data.
% 
%   AMTAUXDATAURL(newurl) sets the URL of the web address for further calls
%   of AMTAUXDATAURL.
%
%   See also: amtauxdatapath amtload
%
%   Url: http://amtoolbox.sourceforge.net/amt-0.9.7/doc/amtauxdataurl.php

% Copyright (C) 2009-2014 Peter L. Søndergaard and Piotr Majdak.
% This file is part of AMToolbox version 0.9.7
%
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this program.  If not, see <http://www.gnu.org/licenses/>.

persistent AuxDataURL;

if exist('newURL','var')
  AuxDataURL=newURL;
elseif isempty(AuxDataURL)
  AuxDataURL=['http://www.sofacoustics.org/data/amt-' amthelp('version') '/auxdata'];
end
auxURL=AuxDataURL;