octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #54765] space between function name and openin


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #54765] space between function name and opening parenthesis causes havoc for expression inside brackets
Date: Tue, 2 Oct 2018 01:04:55 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36

Update of bug #54765 (project octave):

                  Status:                    None => Invalid                
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #1:

Thanks for your bug report. But this is not a bug, this is the correct
operation of the square bracket syntax for array concatenation in Octave and
Matlab.

Spaces are significant inside of square brackets in the Octave language. The
syntax


[sin (0)]


is equivalent to


[sin(), 0]


You can read more about this in the Octave user manual at
http://octave.org/doc/interpreter/Matrices.html. In fact, an example showing a
call to the sin function is used to illustrate how the syntax is parsed.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?54765>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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