| www.delorie.com/gnu/docs/octave/octave_54.html | search |
![]() Buy GNU books! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
sprintf (see section 13.2.4 Formatted Output).
setstr ([97, 98, 99])
=> "abc"
|
s = [ "ab"; "cde" ];
strcat (s, s, s)
=> "ab ab ab "
"cdecdecde"
|
" " (a single space). For example,
string_fill_char = "X";
[ "these"; "are"; "strings" ]
=> "theseXX"
"areXXXX"
"strings"
|
Note:
This function is modelled after MATLAB. In Octave, you can create
a matrix of strings by [s_1; ...; s_n] even if
the strings are not all the same length.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |