octave-maintainers
[Top][All Lists]
Advanced

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

Re: Parsing order for matrices


From: Daniel J Sebald
Subject: Re: Parsing order for matrices
Date: Thu, 18 Oct 2012 11:22:48 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16

On 10/18/2012 07:28 AM, Jordi GutiƩrrez Hermoso wrote:
On 18 October 2012 03:50, Daniel J Sebald<address@hidden>  wrote:
In trying to observe the whitespace-between-function-name-and-parenthesis I
noticed the following behavior:

Matlab compatibility.

OK. Have to pick one way or the other I suppose. I guess there are a number of subtle differences or consistencies between syntax inside brackets and without brackets:

octave-cli:6> 1 3
parse error:

  syntax error

1 3
      ^

octave-cli:6> [1 3]
ans =

   1   3

octave-cli:7> 1 , 3
ans =  1
ans =  3
octave-cli:8> [1 , 3]
ans =

   1   3

octave-cli:9> 1 : 3
ans =

   1   2   3

octave-cli:10> [1 : 3]
ans =

   1   2   3

Dan


reply via email to

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