|
From: | michele |
Subject: | Re: Help with isequal |
Date: | Sun, 26 Nov 2017 20:31:44 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 |
On 11/26/2017 07:33 PM, Rik wrote:
Could someone with access to Matlab test the following? The question at hand is whether isequal always returns a "full" value, or can occasionally return a sparse, logical value. t = isequal (sparse(1), sparse(1)) issparse (t) t = isequal (sparse(1), 1) issparse (t) t = isequal (1, sparse(1)) issparse (t) t = all (sparse([1 1 1])) issparse (t) Thanks, Rik
Matlab R2017b here. They are all full logical values, except for the last one which is a sparse logical. I attach the diary for completeness.
-- Michele Ginesi
diary
Description: Text document
[Prev in Thread] | Current Thread | [Next in Thread] |