changeset 868:b42bfcfed81d

regionprops.m: Return a column vector for Matlab compatibility
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Mon, 10 Feb 2014 10:41:30 -0500
parents dac2126ec030
children 5e598ccaf0c7
files inst/regionprops.m
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/inst/regionprops.m
+++ b/inst/regionprops.m
@@ -348,6 +348,8 @@
         error ("regionprops: unsupported property '%s'", property);
     endswitch
   endfor
+  ## Matlab returns a column vector struct array.
+  retval = retval(:);
 endfunction
 
 function retval = local_area (bw)