diff scripts/miscellaneous/orderfields.m @ 16656:cf84ea2ba2d3

require dynamic field names to be character strings * pt-idx.cc (tree_index_expression::get_struct_index): Require field names to be character strings. * orderfields.m: Index fieldnames with {} instead of ().
author John W. Eaton <jwe@octave.org>
date Mon, 13 May 2013 18:50:14 -0400
parents 6be613476e37
children 83e6baf0bc3f
line wrap: on
line diff
--- a/scripts/miscellaneous/orderfields.m	Mon May 13 16:37:28 2013 -0400
+++ b/scripts/miscellaneous/orderfields.m	Mon May 13 18:50:14 2013 -0400
@@ -153,7 +153,7 @@
   else
     n = numel (s1);
     for i = 1:numel (names)
-      el = names(i);
+      el = names{i};
       [t(1:n).(el)] = s1(:).(el);
     endfor
     ## inherit dimensions