The flatten() function for arrays of matrices or strings has a couple
of enhancements in git.
Matrices: complex matrices are now handled correctly (but an array
containing a mixture of complex and real matrices is not accepted).
Strings: the second (optional boolean) argument to flatten can now be
used to separate the strings with spaces rather than newlines.
On strings, though, I have a comment on the feature request for the
new option (in the SF trackers). The text includes: "This would be
useful if the input array actually holds textual representations of
numbers, which can then be processed with sscanf."
An array of strings that represent numbers can be processed via sscanf
"as is", without flattening (see the help text for sscanf). And if the
array is flattened, sscanf will work equally well whether the strings
are on separate lines (you get a column vector) or space-separated on
a single line (you get a row vector).
<hansl>
strings S = defarray("1", "2", "3", "4")
matrix m
sscanf(S, "%m", m)
print m
sscanf(flatten(S), "%m", m)
print m
sscanf(flatten(S, 1), "%m", m)
print m
</hansl>
Allin