Error in csvwrite argument (IPT functions)

  • Follow


I am getting the following error when attempting to call csvwrite:

??? Error using ==> horzcat
CAT arguments are not consistent in structure field names.

Error in ==> analyze_shapes at 66
csvwrite ('shape_metrics.csv',[eccentricity(big_area)
Euler_Number(big_area)]);

   The key code is shown below.

   How do I reference the scalar values of these variables properly
so they are proper elements of a matrix?

Thanks, Alan

eccentricity = regionprops(L, 'eccentricity');
Euler_Number = regionprops(L, 'EulerNumber');
.. . .
csvwrite ('shape_metrics.csv',[eccentricity(big_area)
Euler_Number(big_area)]);
0
Reply jalanthomas (125) 5/15/2007 1:32:36 PM

I`m not exactly sure why, but this worked:

csvwrite ('shape_metrics.csv',[eccentricity(big_area).Eccentricity
Euler_Number(big_area).EulerNumber]);

        Alan
0
Reply jalanthomas (125) 5/15/2007 1:39:36 PM


1 Replies
24 Views

(page loaded in 0.732 seconds)

Similiar Articles:





7/23/2012 4:35:48 AM


Reply: