Model Browser User's Guide    

Data Function Check In

Once you have written the function, you need to check it into the MBC Toolbox, using the xregCheckinDataLoadingFcn function. This function has the following prototype:

fcn is either a function handle or a string that calls the data loading function via feval. This function must be on the MATLAB path.

filterSpec is a 1-by-2 element cell array that contains the extensions that this function loads and the descriptions of those files. This cell array is used in the uigetfile function, for example, {'*.m;*.fig;*.mat;*.mdl', 'All MATLAB Files'}. MBC attempts to decide automatically which sort of file is loaded, based on the extension. In the case of duplicate extensions, the first in the list is selected; however, it is always possible to override the automatic selection with a user selection. You will see a warning message if there is any ambiguity.

fileType is a string that describes the file type, for example, 'MATLAB file' or 'Excel file'.


  Data Loading Application Programming Interface Radial Basis Functions