bugGNU Octave - Bugs: bug #42784, struct command doesn't work...

 
 

bug #42784: struct command doesn't work properly with cell data; in the example provided penalty1 and penalty2 are different; penalt

Submitted by:  None
Submitted on:  Wed 16 Jul 2014 08:11:25 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: InvalidAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: 3.8.1
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 16 Jul 2014 09:50:54 PM UTC, 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:

John W. Eaton <jwe>
Project Administrator
Wed 16 Jul 2014 08:25:04 PM UTC, comment #1:

Seems to me like the documented behaviour, even for MATLAB.

Stefan Mahr <dac922>
Wed 16 Jul 2014 08:11:25 PM UTC, original submission:
Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by dac922 (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 16 Jul 2014 09:50:54 PM UTCjweStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1