bugGNU Octave - Bugs: bug #53652, Cannot save function handle to a...

 
 

bug #53652: Cannot save function handle to a Matlab file format

Submitter:  Ceral Paquet <octavebugs>
Submitted:  Sat 14 Apr 2018 12:07:42 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.2.1 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 14 Apr 2018 11:14:04 PM UTC, comment #2: 

THis was reported a few years ago, see bug #43215. Closing this bug report as a duplicate.

Mike Miller <mtmiller>
Group Member
Sat 14 Apr 2018 12:44:29 PM UTC, comment #1: 

I don't think this has ever worked because Matlab has not published the file format for function handles so we have no idea how to implement saving them.

If you need to save function handles use one of Octave's own formats.


octave:4> f = @sin
f = @sin
octave:5> save -text tmp f
octave:6> save -v7 tmp f
warning: save: wrong type argument 'function handle'
error: save: error while writing 'f' to MAT file
octave:6> save -v6 tmp f
warning: save: wrong type argument 'function handle'
error: save: error while writing 'f' to MAT file
octave:6> save -v4 tmp f
warning: save: wrong type argument 'function handle'



Rik <rik5>
Group administrator
Sat 14 Apr 2018 12:07:42 PM UTC, original submission:  


>> clear all
>> f=@sin
f = @sin
>> f(1)
ans =  0.84147
>> save temp.mat
warning: save: wrong type argument 'function handle'
error: save: error while writing 'f' to MAT file


Ceral Paquet <octavebugs>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by octavebugs (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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-04-14 mtmiller StatusConfirmed Duplicate
        Open/ClosedOpen Closed
        Dependencies- Depends on bugs #43215
    2018-04-14 rik5 CategoryNone Octave Function
        Item GroupNone Matlab Compatibility
        StatusNone Confirmed
        SummaryCannot save simple function handle Cannot save function handle to a Matlab file format

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code