image thumbnail
from Check4updates by Bjorn Gustavsson
Check4updates tracks updates of your favourite FeX packages, with GUI-selection for download.

fcnWithInpArgsExmpl.m
function fcns2check4updates = fcnWithInpArgsExmpl(filename,idxs)
% fcnWithInpArgsExmpl - Exmpla of a data-base function of FeX
% contributions to track for updates that takes an input argument, 
% 
% Calling:
%    fcns2check4updates = fcnWithInpArgsExmpl(filename)
% Input:
%    flename - 
% Output
%    fcns2check4updates - cell-array [nF x 2] with
%                         file/directory/package name in column 1
%                         and file exchange identifier nr in column 2
% 
% This file contains the cell-array with the file-exchange Id
% number and a filename from that contribution or directory name of
% that package. Check4updates will parse the file exchange web-page
% for the latest update date and compare that with the date of the
% corresponding file (or directory) and select those entries where
% the local copy is more than 3 days older for updating.
%
% The list below is an example of how this cell-array list should
% look.

%    2012 Bjorn Gustavsson, <bjorn.gustavsson@irf.se> 
%   This is free software, licensed under BSD-license

% Maybe not the most useful example of what to use an input
% argument to:
disp(filename)

fcns2check4updates = {
    14056,    'arrow3';
    3747,     'cline';
    13000,    'ImageViewer';
    13188,    'jbfill';
    26508,    'notBoxPlot';
    27582,    'rug';
    3777,     'tcolor';
    4551,     'inpaint_nans';
    8998,     'gridfit';
    24443,    'slm_tutorial';
    5557,     'circfit';
    52,       'regtools';
    10867,    'uipickfiles';
    23972,    'chebfun';
                   };


fcns2check4updates = fcns2check4updates(:,[2,1]);

if nargin > 1 && ~isempty(idxs)
  try
    fcns2check4updates = fcns2check4updates(idxs,:);
  catch
    disp('fcnWithInpArgsExmpl: second input argument should be an')
    disp('integer array functioning as index into the fcns2check4updates')
    disp('arrays first dimension [14 x 2]')
  end
end

Contact us