help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strjust


From: Ben Abbott
Subject: Re: strjust
Date: Wed, 13 Oct 2010 09:43:19 -0700

On Oct 13, 2010, at 12:16 AM, Leo Butler <address@hidden> wrote:

> In 3.3.52+, I find the following behaviour of strjust,
> which appears to conflict with its description.
> 
> octave> s=sprintf("\tstring");
> octave> s=strjust(s,"left")
> s =     string
> octave> s=sprintf("        string");
> octave> s=strjust(s,"left")
> s = string
> 
> You can see that it is not removing leading tabs.
> 
> Leo

Does the description below clarify how strjust functions?

strjust (S)
strjust (S, "right")
Returns the text, S, justified to the right.
strjust (S, "left")
Returns left justified text.
strjust (S, "center")
Returns center justified text.
Null characters are replaced by spaces.

Ben
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]