view m-toolbox/sltpda/sltpda_reduceVarName.m @ 38:3aef676a1b20
database-connection-manager
Keep backtrace on error
author
Daniele Nicolodi <nicolodi@science.unitn.it>
date
Mon, 05 Dec 2011 16:20:06 +0100 (2011-12-05)
parents
f0afece42f48
children
line source
+ − function nout = sltpda_reduceVarName(nin)
+ −
+ − % SLTPDA_REDUCEVARNAME reduces a variable name to a sensible length. The
+ − % output name is algorithmically based on the input name and so we should
+ − % get unique variable names in the sLTPDA parser.
+ − %
+ − % M Hewitson 01-05-07
+ − %
+ − % $Id: sltpda_reduceVarName.m,v 1.1 2007/05/01 08:29:22 hewitson Exp $
+ − %
+ −
+ − if length(nin) > 20e6
+ − nout = [nin(1:10) '_' num2str(length(nin)) '_' nin(end-10:end)];
+ − else
+ − nout = nin;
+ − end
+ −
+ − % END