Am 01.10.2020 um 15:22 schrieb Sven Schreiber:
<hansl>
set verbose off
matrix m = {0.0234, 2.8797, -3.2342}
printf "%12.2f", m[1,]
printf "hey\n" # prints on a new output line
m = {3.3}
printf "%12.2f", m[1,]
printf "hey\n" # no new line
</hansl>
Is this intended? It's a bit difficult to write general code when you
don't know whether a newline is printed or not.
P.S.: I guess the reason is the matrix-vs.-scalar behavior I described
in the other post...
-s