diff src/ov-str-mat.h @ 4569:01e4957409a4

[project @ 2003-10-30 05:48:17 by jwe]
author jwe
date Thu, 30 Oct 2003 05:48:17 +0000
parents 508238e65af7
children ef3a14fb6847
line wrap: on
line diff
--- a/src/ov-str-mat.h
+++ b/src/ov-str-mat.h
@@ -91,6 +91,9 @@
 
   void assign (const octave_value_list& idx, const charMatrix& rhs);
 
+  octave_value reshape (const dim_vector& new_dims) const
+    { return octave_value (charNDArray (matrix.reshape (new_dims)), true); }
+
   bool is_string (void) const { return true; }
 
   bool is_real_type (void) const { return false; }