[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
>
- strjust, Leo Butler, 2010/10/13
- Re: strjust,
Ben Abbott <=
- Re: strjust, Leo Butler, 2010/10/14
- Re: strjust, Ben Abbott, 2010/10/14
- Re: strjust, Ozzy Lash, 2010/10/14
- Re: strjust, Ben Abbott, 2010/10/14
- Re: strjust, Ozzy Lash, 2010/10/14
- Re: strjust, Ben Abbott, 2010/10/14
- Re: strjust, Ozzy Lash, 2010/10/14
- Re: strjust, Leo Butler, 2010/10/15
- Re: strjust, Jaroslav Hajek, 2010/10/15
- Re: strjust, Ben Abbott, 2010/10/15