Home > atmlab > handy > replace_aliases.m

replace_aliases

PURPOSE ^

replace_aliases String-replaces all aliases occuring in s

SYNOPSIS ^

function s = replace_aliases(s)

DESCRIPTION ^

 replace_aliases String-replaces all aliases occuring in s

 For an input string s, substitutes all aliases with their respective
 value. The aliases are taken from <a href="matlab:open(which('alias'))">alias</a>

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

replace_aliases.m

SOURCE CODE ^

0001 function s = replace_aliases(s)
0002 
0003 % replace_aliases String-replaces all aliases occuring in s
0004 %
0005 % For an input string s, substitutes all aliases with their respective
0006 % value. The aliases are taken from <a href="matlab:open(which('alias'))">alias</a>
0007 
0008 C = [fieldnames(alias) struct2cell(alias)].';
0009 C = C(:);
0010 s = strrep_multi(s, C{:});

Generated on Mon 15-Sep-2014 13:31:28 by m2html © 2005