Mercurial > hg > ltpda
comparison m-toolbox/sltpda/sltpda_reduceVarName.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 function nout = sltpda_reduceVarName(nin) | |
2 | |
3 % SLTPDA_REDUCEVARNAME reduces a variable name to a sensible length. The | |
4 % output name is algorithmically based on the input name and so we should | |
5 % get unique variable names in the sLTPDA parser. | |
6 % | |
7 % M Hewitson 01-05-07 | |
8 % | |
9 % $Id: sltpda_reduceVarName.m,v 1.1 2007/05/01 08:29:22 hewitson Exp $ | |
10 % | |
11 | |
12 if length(nin) > 20e6 | |
13 nout = [nin(1:10) '_' num2str(length(nin)) '_' nin(end-10:end)]; | |
14 else | |
15 nout = nin; | |
16 end | |
17 | |
18 % END |