octave-maintainers
[Top][All Lists]
Advanced

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

Re: sparse compatibility check


From: Ray Zimmerman
Subject: Re: sparse compatibility check
Date: Wed, 7 Oct 2015 13:02:02 -0400

On Oct 7, 2015, at 12:49 PM, Rik <address@hidden> wrote:

Could someone run the following under Matlab and paste back the result?

---Code---
x = sparse ([1 0; 0 2])
cos (x)
---End Code---

Thanks,
Rik


>> x = sparse ([1 0; 0 2])

x =

   (1,1)        1
   (2,2)        2

>> cos (x)

ans =

   (1,1)       0.5403
   (2,1)       1.0000
   (1,2)       1.0000
   (2,2)      -0.4161


reply via email to

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