bugGNU Octave - Bugs: bug #31571, matrix incorrect build

 
 

bug #31571: matrix incorrect build

Submitter:  Nino <nino>
Submitted:  Sat 06 Nov 2010 07:16:35 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Need Info Assigned to:  None
Originator Name:  Nino Open/Closed:  * Closed
Release:  * 3.2.4 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 06 Dec 2010 05:24:30 PM UTC, comment #2: 

No response to request for additional information in 1 month.  Closing bug report.

Rik <rik5>
Group administrator
Sun 07 Nov 2010 09:09:06 AM UTC, comment #1: 

Running Matlab I see ...

>> Rext = [];
>> whos Rext

  Name      Size            Bytes  Class     Attributes

  Rext      0x0                 0  double             

>> Ibox = Rext * [0, 1; 1, 1]

??? Error using ==> mtimes
Inner matrix dimensions must agree.

Please confirm that your variable, Rext, is supposed to be empty.


Ben Abbott <bpabbott>
Group Member
Sat 06 Nov 2010 07:16:35 PM UTC, original submission:  

A mfile which worked with Matlab does not work with Octave because a matrix is not build correctly. The same line works on the main window of the program but not in the file,
the line is
lbox=Rext*[0,1;1,1];
error: operator *: nonconformant arguments (op1 is 0x0, op2 is 2x2)

I tried also
lbox = [0 -Rext
       Rext Rext]
or
           lbox=0;
   lbox=[lbox -Rext]
   lbox=[lbox; Rext Rext]
but the results is always a scalar lbox=0
I include the file

Nino <nino>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #21946:  dr.m added by nino (242B - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by bpabbott (Posted a comment)
  • -email is unavailable- added by nino (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-12-06 rik5 Open/ClosedOpen Closed
    2010-11-07 rik5 Carbon-CopyRemoved 72865 -
    2010-11-07 rik5 StatusNone Need Info
    2010-11-06 nino Attached File- Added dr.m, #21946

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code