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

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

[Octave-bug-tracker] [bug #42784] struct command doesn't work properly w


From: anonymous
Subject: [Octave-bug-tracker] [bug #42784] struct command doesn't work properly with cell data; in the example provided penalty1 and penalty2 are different; penalt
Date: Wed, 16 Jul 2014 20:11:25 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0 Iceweasel/30.0

URL:
  <http://savannah.gnu.org/bugs/?42784>

                 Summary: struct command doesn't work properly with cell data;
in the example provided penalty1 and penalty2 are different; penalt
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Wed 16 Jul 2014 08:11:25 PM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.8.1
        Operating System: GNU/Linux

    _______________________________________________________

Details:


n = 2;

Qcell = cell(2,1);
Qcell{1} = eye(n);
Qcell{2} = 2*eye(n);
R = 1;

penalty1 = struct("Qk", Qcell, "Rk", R);

penalty2.Qk = Qcell;
penalty2.Rk = R;

penalty1
penalty2





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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