bugGNU Octave - Bugs: bug #43215, save function handle variables in...

 
 

bug #43215: save function handle variables in MATLAB's binary data format

Submitter:  Guillaume <gyom>
Submitted:  Fri 12 Sep 2014 04:38:30 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Confirmed Assigned to:  None
Originator Name:  Guillaume Open/Closed:  * Open
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 22 Apr 2016 06:32:38 PM UTC, comment #1: 

Confirmed, there is no code implemented to handle function handles in any of the Matlab file formats, including -ascii.

Mike Miller <mtmiller>
Group Member
Fri 12 Sep 2014 04:38:30 PM UTC, original submission:  

It seems that function handle variables cannot be saved on disk when using MATLAB's binary data format:


octave> A = @(x) x;
octave> save testmat.mat A -mat
warning: save: wrong type argument 'function handle'
error: save: error while writing 'A' to MAT file
warning: save: no such variable 'A'
octave> B = struct('field1',1,'field2',A);
octave> save testmat.mat B -mat
warning: save: wrong type argument 'function handle'
error: save: error while writing '' to MAT file
error: save: error while writing 'B' to MAT file
warning: save: no such variable 'B'


Guillaume <gyom>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -email is unavailable- added by svillemot
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by gyom (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-09-17 svillemot Carbon-Copy- Added svillemot
    2018-04-14 mtmiller Dependencies- bugs #53652 is dependent
    2016-04-22 mtmiller StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code