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: John W. Eaton
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 21:50:55 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0 Iceweasel/29.0.1

Update of bug #42784 (project octave):

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

    _______________________________________________________

Follow-up Comment #2:

Stefan is right, if the values are cells, then the struct function creates
struct arrays.  That's the behavior in Matlab and Octave.  If you want to use
struct to put cells in individual fields, then you can use something like
this:


struct ("Qk", {Qcell}, "Rk", {R})



    _______________________________________________________

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]