octave-maintainers
[Top][All Lists]
Advanced

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

Re: help with format +


From: PhilipNienhuis
Subject: Re: help with format +
Date: Fri, 16 Feb 2018 00:49:50 -0700 (MST)

Rik-4 wrote
> Could someone try the following code under Matlab?
> 
> x = ones (3,3);
> x(2,2) = 0;
> x([1, 3], [3, 1]) = -1;
> format +
> x
> sx = sparse (x)

r2018a prerelease (copied in one time into terminal so consecutive answers,
but clear enough):

>> format compact
>> x = ones (3,3);
x(2,2) = 0;
x([1, 3], [3, 1]) = -1;
format +
x
sx = sparse (x)
x =
-+-
+ +
-+-
sx =
   (1,1)   -
   (2,1)   +
   (3,1)   -
   (1,2)   +
   (3,2)   +
   (1,3)   -
   (2,3)   +
   (3,3)   -

Philip



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-Maintainers-f1638794.html



reply via email to

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