help-octave
[Top][All Lists]
Advanced

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

Re: probl with INPUT


From: Mike Miller
Subject: Re: probl with INPUT
Date: Sat, 3 Oct 2015 10:03:23 -0400
User-agent: Mutt/1.5.24 (2015-08-30)

On Sat, Oct 03, 2015 at 13:53:25 +0200, Robert Setif wrote:
> Hello !
> I work with Octave 4.0.0 (octave 4.0.0... installer.exe) in Windows 7.
> When I write in command-window:
> 
>   input ("n ? : ")
> 
> I obtain :
> 
> error: invalid use of script C:\Octave\Octave-4.0.0\rsprog\input.m in index
> expression  "
> 
> When I write  in Editor:
> 
>   # input_1.m  3/10/2015
> input ("n? (0 for exit) : ")
> n=ans
> if (n==0)
>   return
> endif
> disp(n*11)
> 
>  I obtain:
> 
>  >> input_1
> error: invalid use of script C:\Octave\Octave-4.0.0\rsprog\input.m in index
> expression
> 
> error: called from
>     input_1 at line 2 column 1
> >>
> 
> Is it a bug of this version 4.0.0 ?
> Otherwise, how using "input".
> It would be nice if numerous little programs go with Octave !

You have created a script named "input.m" in the directory shown in the
error message. This is overriding Octave's input function. Delete or
rename your input.m script.

HTH,

-- 
mike



reply via email to

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