help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bizarre Error


From: John W. Eaton
Subject: Re: Bizarre Error
Date: Wed, 12 Feb 2003 22:02:36 -0600

On 13-Feb-2003, address@hidden <address@hidden> wrote:

| Okay to make everyones life easier i have isolated the problem:
| 
| i have written a new function that has the same problem:
| %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
| function test
| a=1
| while a==1
| loadline=['load -force testfile.dat'];
| eval(loadline);
| userin=input('>>','s');
| userin=str2num(userin)
| if userin==0
| return
| end
| end
| %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
| 
| just create the file testfile.dat containing any old stuff then run this 
| function. Test different strings...a string prefixed by a number produces an 
| error.

This seems to work correctly for me with 2.1.44:

  octave:1> test
  a = 1
  >>abc123
  userin = [](0x0)
  octave:2> test
  a = 1
  >>123abc
  userin = [](0x0)

You say that the contents of testfile.dat doesn't matter, but in case
it does, I used:

# Created by Octave 2.1.44, Wed Feb 12 18:16:03 2003 CST <address@hidden>
# name: a
# type: matrix
# rows: 2
# columns: 2
 1 2
 3 4

jwe



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]