save and load bug.
GARY FORBIS
forbisgaryg at msn.com
Sat Dec 27 19:50:39 CST 2008
a> I tried a simple version> > a = -rand (1, 500);> save -text test.txt a> clear all> load test.txt> whos a> > Running both 3.0.3 and the developers sources load() appears to work.> > I you are unable to produce a simple example which demonstrates the > problem, can you attach a file that doesn't load so that it may be > examined?> > Ben
I thought I gave it. Here it is again:
a=-0.03597396637549816
b=[]for x=1:500b=[b,a]save stest bload stestend
Here it is running:
octave-3.0.3.exe:13> a=-0.03597396637549816a = -0.035974octave-3.0.3.exe:14>octave-3.0.3.exe:14> b=[]b = [](0x0)octave-3.0.3.exe:15> for x=1:500> b=[b,a]> save stest b> load stest> enderror: load: failed to load matrix constanterror: load: trouble reading ascii file `stest'error: load: reading file stesterror: evaluating for command near line 15, column 1octave-3.0.3.exe:15>
The reason I wrote it that way was because it fails predictably. Another version:
a=-0.03597396637549816
b=[]
for x=1:383
b=[b,a]
endsave stest bload stest
b=[b,a]
save stest bload stest
In this second program the first case loads and the second fails.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20081228/64f1e3ee/attachment.html
More information about the Help-octave
mailing list