|
From: | Guillaume |
Subject: | [Octave-bug-tracker] [bug #37087] empty struct not empty after being saved in MATLAB binary data format. |
Date: | Mon, 13 Aug 2012 19:14:01 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1 |
URL: <http://savannah.gnu.org/bugs/?37087> Summary: empty struct not empty after being saved in MATLAB binary data format. Project: GNU Octave Submitted by: gyom Submitted on: Mon 13 Aug 2012 07:14:00 PM GMT Category: None Severity: 3 - Normal Priority: 5 - Normal Item Group: Matlab Compatibility Status: None Assigned to: None Originator Name: Guillaume Originator Email: Open/Closed: Open Discussion Lock: Any Release: dev Operating System: Any _______________________________________________________ Details: The size of an empty struct (struct([])) changes when saved in MATLAB binary data format: octave> A=struct([]) A = 0x0 struct array containing the fields: octave> isempty(A) ans = 1 octave> size(A) ans = 0 0 octave> save A.mat A -mat octave> load A.mat octave> A A = scalar structure containing the fields: octave> isempty(A) ans = 0 octave> size(A) ans = 1 1 _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?37087> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |