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
|
|