[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Octave
From: |
Sergei Steshenko |
Subject: |
Re: Octave |
Date: |
Sun, 13 Apr 2014 14:09:34 -0700 (PDT) |
----- Original Message -----
> From: Ben Abbott <address@hidden>
> To: c. <address@hidden>
> Cc: eugenio.pariani <address@hidden>; address@hidden
> Sent: Sunday, April 13, 2014 11:35 PM
> Subject: Re: Octave
>
>
> On Apr 13, 2014, at 4:23 PM, c. <address@hidden> wrote:
>
>>
>> On 13 Apr 2014, at 21:39, eugenio.pariani <address@hidden>
> wrote:
>>
>>> Hello
>>>
>>> I’m a beginner in the use of the SW Octave ed. for windows 3.8 and I
> have a short question which could be related to my no-experience.
>>> I tried to start introducing this simple command
>>>
>>>>> input (“a number”)
>>> a number100 (of course 100 was written by me)
>>> ans = [](0×0)
>>>>>
>>> I was expecting (reading the manual):
>>>>> input (“a number”)
>>> a number100
>>> ans = 100
>>>>>
>>> Where is my mistake? Would you help me?
>>>
>>>
>>> Thanks in advance
>>> Eugenio
>>
>> I guess you should assign the input value to a variable:
>>
>>>> a = input ("a number ")
>> a number 100
>> a = 100
>>>>
>>
>> c.
>
> Matlab behaves as Eugenio expected.
>
> input ('a number')
> a number100
> ans = 100
>
> Bug report?
>
> Ben
>
An additional piece of info - using octave-3.6.4:
"
octave:1> input ('a number')
a number100
ans = [](0x0)
octave:2> disp(input ('a number'))
a number100
100
"
, i.e. wrapping 'input' into 'disp' does display he number.
I don't know what it means from Octave developers point of view though.
Regards,
Sergei.
- Octave, eugenio.pariani, 2014/04/13