Doxygen Source Code Documentation
pad_strn.m File Reference
Go to the source code of this file.
Functions | |
while (length(S)< n) if(loc | |
elseif (loc==-1) | |
Variables | |
function | S |
function | err = ErrEval(mfilename, 'Err_First two arguments must be characters') |
return | |
end | end |
Function Documentation
|
|
|
|
Variable Documentation
|
Definition at line 24 of file pad_strn.m. |
|
Definition at line 10 of file pad_strn.m. |
|
Definition at line 26 of file pad_strn.m. |
|
Initial value: pad_strn (strg,padchar,n,loc) % S = PAD_STRN (strg,padchar,n,loc) %This function pad the string 'strg' with 'padchar' characters % such that 'S' is 'n' characters long. % if loc = 1 the 'padchar' are added to the left of 'strg' % if loc = -1 the 'padchar' are added to the right of 'strg' if (~ischar(strg) | ~ischar(padchar)) Definition at line 21 of file pad_strn.m. |