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

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

[Octave-bug-tracker] [bug #47201] Manually entered row vector converted


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #47201] Manually entered row vector converted to column vector
Date: Fri, 19 Feb 2016 18:55:50 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0 Iceweasel/44.0

Update of bug #47201 (project octave):

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

    _______________________________________________________

Follow-up Comment #1:

Octave works this way for compatibility with Matlab.  Even though each line
ends with a comma and a comment, the newline character is still interpreted to
mean "start a new row".  To enter a row vector this way you need to use
continuation markers.  For example:


x = [1, ... % comment 1
2, ... % comment 2
3]; % comment 3


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47201>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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