help-octave
[Top][All Lists]
Advanced

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

Re: ... makes a difference


From: Henry F. Mollet
Subject: Re: ... makes a difference
Date: Tue, 07 Mar 2006 10:30:48 -0800
User-agent: Microsoft-Entourage/11.1.0.040913

JWE has explained but I would like to ask/point out that ... is overriding
the subsequent return key that I have to use to put the '2' on a new line.
Therefore the comma is not needed and the return key has the same function
as using a semicolon.
Henry

octave:6> [1,
> 2]
ans =

  1
  2

octave:7> [1
> 2]
ans =

  1
  2

octave:8> [1;2]
ans =

  1
  2


on 3/7/06 12:01 AM, Peter Lempel Søndergaard at address@hidden wrote:

> Dear list,
> 
> typing 
> 
> [1,
>  2]
> 
> in a script file gives
> 
> ans = 
> 
>   1
>   2
> 
> while typing 
> 
> [1,...
>  2]
> 
> gives
> 
> ans =
> 
>   1 2
> 
> In my mind, both examples should produce the second output. Is this
> documented somewhere? I am using octave 2.1.72
> 
> Cheers,
> 
> Peter
> 
> 
> 
> -------------------------------------------------------------
> 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
> -------------------------------------------------------------
> 





-------------------------------------------------------------
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]