# HG changeset patch # User Rik # Date 1627671948 25200 # Node ID b39203a44db2614b1965d1c9b4f24e841c8f5d9a # Parent 7faff48840eb85e0d96ff00b2b848a1130554de7 Call print_struct_array_contents(1) when '--traditional' option used. * NEWS: Announce change in Matlab compatibility section. * basics.txi: Update documentation for '--traditional' mode. * interpreter.cc (Fmaximum_braindamage): Call print_struct_array_contents(1). diff -r 7faff48840eb -r b39203a44db2 NEWS --- a/NEWS Fri Jul 30 11:46:05 2021 -0400 +++ b/NEWS Fri Jul 30 12:05:48 2021 -0700 @@ -180,6 +180,11 @@ - The functions `quantile` and `prctile` now permit operating on dimensions greater than `ndims (x)`. +- The function `iqr` now uses Matlab compatible interpolation for +quantile values. Dimension input now allows a vector, "all", and +dimensions greater than `ndims (x)`. The function compatibly handles +`Inf` and `NaN` input values. + - The function `importdata` now produces more compatible results when the file contains a 2-D text matrix. @@ -211,10 +216,9 @@ Matlab code, but for which Octave does not yet implement the functionality. By default, this warning is enabled. -- The function `iqr` now uses Matlab compatible interpolation for -quantile values. Dimension input now allows a vector, "all", and -dimensions greater than `ndims (x)`. The function compatibly handles -`Inf` and `NaN` input values. +- When Octave is started with the `--traditional` option for maximum +compatibility the `print_struct_array_contents` internal variable is set +to true. ### Alphabetical list of new functions added in Octave 7 diff -r 7faff48840eb -r b39203a44db2 doc/interpreter/basics.txi --- a/doc/interpreter/basics.txi Fri Jul 30 11:46:05 2021 -0400 +++ b/doc/interpreter/basics.txi Fri Jul 30 12:05:48 2021 -0700 @@ -256,6 +256,7 @@ fixed_point_format = true history_timestamp_format_string = "%%-- %D %I:%M %p --%%" print_empty_dimensions = false +print_struct_array_contents = true save_default_options = "-mat-binary" struct_levels_to_print = 0 @end group @@ -269,6 +270,7 @@ Octave:abbreviated-property-match Octave:colon-nonscalar-argument Octave:data-file-in-path +Octave:empty-index Octave:function-name-clash Octave:possible-matlab-short-circuit-operator @end group diff -r 7faff48840eb -r b39203a44db2 libinterp/corefcn/interpreter.cc --- a/libinterp/corefcn/interpreter.cc Fri Jul 30 11:46:05 2021 -0400 +++ b/libinterp/corefcn/interpreter.cc Fri Jul 30 12:05:48 2021 -0700 @@ -2029,13 +2029,14 @@ m_history_system.timestamp_format_string ("%%-- %D %I:%M %p --%%"); m_error_system.beep_on_error (true); + Fconfirm_recursive_rmdir (octave_value (false)); - Fdisable_diagonal_matrix (octave_value (true)); Fdisable_permutation_matrix (octave_value (true)); Fdisable_range (octave_value (true)); Ffixed_point_format (octave_value (true)); Fprint_empty_dimensions (octave_value (false)); + Fprint_struct_array_contents (octave_value (true)); Fstruct_levels_to_print (octave_value (0)); disable_warning ("Octave:abbreviated-property-match");