1 function fname = cache_velocity_matrixfile_extract(model,...
3 %
function fname = cache_velocity_matrixfile_extract(model, ...
6 %
function checking the availability of the velocity matrixfile in the cache
7 % required
for evaluation of the velocity in the given points.
8 % No real files are generated, but the persitent cache variable is used
9 %
for storing these files.
11 % Bernard Haasdonk 4.9.2007
13 %fname = fullfile(rbmatlabhome,
'datafunc',
'data',[ext,
'_', ...
14 % params.velocity_matrixfile]);
16 fname = [ext,
'_', model.velocity_matrixfile];
17 fullfname = fullfile(rbmatlabhome,
'datafunc',
'data',fname);
19 %
if ~exist(fullfname,
'file')
20 if ~cache('exist',fullfname)
22 disp(['generating velocity data in cache: ',fname]);
24 completefn = fullfile(rbmatlabhome,'datafunc','data',...
25 model.velocity_matrixfile);
27 velocity_matrixfile_extract(completefn,X, Y);
33 % save(fullfname,'X','Y','lambda','Vx','Vy');
34 cache('save',fullfname,tmp);
function r = verbose(level, message, messageId)
This function displays messages depending on a message-id and/or a level. Aditionally you can set/res...