Home > freetb4matlab > strings > strjust.m

strjust

PURPOSE ^

% Shift the non-blank text of @var{s} to the left, right or center of

SYNOPSIS ^

function x = strjust (x, just)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} strjust (@var{s}, ['left'|'right'|'center'])
% Shift the non-blank text of @var{s} to the left, right or center of
% the string.  If @var{s} is a string array, justify each string in the
% array.  Null characters are replaced by blanks.  If no justification
% is specified, then all rows are right-justified.  For example:
%
% @example
% @group
% strjust (['a'; 'ab'; 'abc'; 'abcd'])
%      @result{} ans =
%            a
%           ab
%          abc
%         abcd
% @end group
% @end example
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003