[Scilab-users] Number to string with padding of leading blanks by a set of characters
Stefan Du Rietz
sdr at durietz.se
Sun Aug 28 16:30:53 CEST 2016
Hello Jens,
T = msprintf("%3i\n", N)
Regards
Stefan
On 2016-08-28 16:17, Jens Simon Strom wrote:
> Hello,
> I try to transform the number colum N containing integer elements
> from 1 to 999, e. g.
>
> N=[1;11;111]
>
> into
>
> T=[" 1";" 11";"111"].
>
> I tried with commands like justify, repmat, string, size, length - but
> without success. Do I miss one or more better adequate command(s)?
>
> Kind regards
> Jens
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
More information about the users
mailing list