1function params = ssget_defaults
2%SSGET_DEFAULTS returns default parameter settings for ssget.
3%   Usage:  params = ssget_defaults ;
4%   Returns the default parameter settings for ssget.
5%   Edit this file to change these settings.
6%
7%   params.topurl: URL for the SuiteSparse Matrix Collection,
8%       default is https://sparse.tamu.edu.  You shouldn't need to change this,
9%       but you can edit this URL to access the collection from a mirror.
10%
11%   params.topdir: your directory for your copy of the collection.  The default
12%       is the directory containing this M-file.  If you modify this file and
13%       use (for example):
14%           params.topdir = '/users/me/mystuff/' ;
15%       then all of your copies of the matrices will reside there.  The MATLAB
16%       *.mat files will be in /users/me/mystuff/mat/, Matrix Market files go
17%       in /users/me/mystuff/MM, and Rutherford-Boeing files are in
18%       /users/me/mystuff/RB.
19%
20%   params.refresh:  how many days should elapse before re-downloading the
21%       index file (for obtaining access to new matrices in the collection).
22%       default is 30 days.  Use 'inf' to never refresh.
23%
24%   Example:
25%       params = ssget_defaults ;
26%
27%   See also ssget.
28
29% Copyright 2009-2019, Timothy A. Davis, http://www.suitesparse.com
30
31% decode the current directory for this M-file
32s = which (mfilename) ;
33i = find (s == filesep) ;
34this = s (1:i(end)) ;
35
36params.topurl = 'https://sparse.tamu.edu' ;
37params.topdir = this ;
38params.refresh = 30 ;
39
40if (params.topdir (end) ~= filesep)
41    % ensure a file separator appears at the end of the local directory path
42    params.topdir = [params.topdir filesep] ;
43end
44
45