octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

num2str help


From: rik
Subject: num2str help
Date: Thu, 14 May 2015 21:21:52 -0700

5/14/15

Can someone verify what the following two code pieces do in Matlab?  In
Octave, num2str operates along rows first, while sprintf operates along
columns first.  Maybe that inconsistency is required for compatibility, but
it is odd.

-- Begin Code --
x = num2str (magic (3), '%d\n')
size (x)

y = sprintf ('%d\n', magic (3))
size (y)
-- End Code --

--Rik



reply via email to

[Prev in Thread] Current Thread [Next in Thread]