bugGNU Octave - Bugs: bug #46457, octave still prints struct array...

 
 

bug #46457: octave still prints struct array contents after print_struct_array_contents( false )

Submitted by:  Martijn <mart1jn>
Submitted on:  Mon 16 Nov 2015 04:54:14 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: InvalidAssigned to: None
Originator Name: Open/Closed: Closed
Release: 4.0.0Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Tue 17 Nov 2015 08:21:27 AM UTC, comment #3:

And I agree that having a way to limit the extent of the vectors octave displays would be helpful. Once again don't hesitate to ask on the help mailing list, there are many Octave gurus that could answer, and it will help other users (at least me :-))

Pantxo Diribarne <pantxo>
Project Member
Tue 17 Nov 2015 07:42:22 AM UTC, comment #2:

Thanks for your quick reaction. I understand now that the behavior is as intended. I misunderstood "scalar structures" as "scalar fields of structures", probably because of what Matlab does: Matlab prints scalar fields, and short vector fields, but not long vector fields, as in my example. I still think it would be very useful to have similar behavior in Octave, but I understand this is a not a bug, so this report can indeed be closed.

Martijn <mart1jn>
Mon 16 Nov 2015 08:26:19 PM UTC, comment #1:

Hi,

Thanks for your bug report. As stated in the documentation, print_struct_array_contents "does not affect scalar structures whose elements are always printed". Actually "false" is the default, and octave does not display data for struct arrays:

Now I don't know if there is a workaround to extend this behavior to scalar structs and this is probably a good question for the help mailing list.

Can I close this report?

Pantxo Diribarne <pantxo>
Project Member
Mon 16 Nov 2015 04:54:14 PM UTC, original submission:

according to the user manual you can use print_struct_array_contents( false ) to prevent Octave from printing all the elements of the fields of a struct array, but it doesn't seem to work. This is impractical for fields that are very large matrices like below. The code snippet below prints all 1000 elements, while I would expect it to print something like "t2: 1x1000 matrix".

Martijn <mart1jn>

 

(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 pantxo (Posted a comment)
  • -unavailable- added by mart1jn (Submitted the item)
  •  

    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
    Tue 17 Nov 2015 08:21:27 AM UTCpantxoOpen/ClosedOpen=>Closed
    Mon 16 Nov 2015 08:26:19 PM UTCpantxoStatusNone=>Invalid

    Back to the top


    Powered by Savane 3.1-cleanup1