[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #33857] Saved struct with function handle fail
From: |
Juan Pablo Carbajal |
Subject: |
[Octave-bug-tracker] [bug #33857] Saved struct with function handle fails to load |
Date: |
Mon, 25 Jul 2011 18:24:01 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110628 Ubuntu/10.10 (maverick) Firefox/3.6.18 |
URL:
<http://savannah.gnu.org/bugs/?33857>
Summary: Saved struct with function handle fails to load
Project: GNU Octave
Submitted by: juanpi
Submitted on: Mon 25 Jul 2011 06:24:01 PM GMT
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: JuanPi
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
Hi,
The following code produces the error
0> n=2;
1> A.func=@(t_,x_,opt_)t_.^n;
2> A.func(0,0,0);
3> save('temp.dat','A');
4> clear all
5> load('temp.dat')
error: load: bogus identifier `.argn.' found in file `'
error: load: reading file
error: load: reading file
error: load: reading file
error: load: reading file
error: load: internal error loading struct elements
error: load: trouble reading ascii file `temp.dat'
error: load: reading file temp.dat
Nota that is line 2> the one causing the problem since the following code
works perfectly.
0> n=2;
1> A.func=@(t_,x_,opt_)t_.^n;
2> save('temp.dat','A');
3> clear all
4> load('temp.dat')
The structure somehow retains the information of the arguments and the
function "save" tries to save them.
Thanks,
JPi
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?33857>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #33857] Saved struct with function handle fails to load,
Juan Pablo Carbajal <=