Index: /issm/trunk/src/c/EnumDefinitions/SynchronizeMatlabEnum.sh
===================================================================
--- /issm/trunk/src/c/EnumDefinitions/SynchronizeMatlabEnum.sh	(revision 1644)
+++ /issm/trunk/src/c/EnumDefinitions/SynchronizeMatlabEnum.sh	(revision 1645)
@@ -17,4 +17,8 @@
 %   Usage:
 %      string=AnalysisTypeAsEnum(enum)
+
+%initialize output
+string='not found';
+
 END
 
@@ -35,7 +39,5 @@
 %$(echo `echo $NAME | sed -e "s/[a-z]/\U&/g"`) - Enum of $(echo `echo $NAME | sed -e "s/Enum//"`)
 %
-%   file generated by src/c/SynchronizeMatlabEnum
-%   to be synchronized with the corresponding C Enum
-%   located in src/c/EnumDefinitions
+%   file generated by src/c/EnumDefinitions/SynchronizeMatlabEnum
 %
 %   Usage:
@@ -58,4 +60,13 @@
 done
 
+#end of AnalysisTypeAsEnum
+cat <<END >> AnalysisTypeAsEnum.m
+
+%check that an analysis type has been found for enum
+if strcmp(string,'not found'),
+	error(['AnalysisTypeAsEnum error message: enum ' num2str(enum) ' not supported!']);
+end
+END
+
 #clean up
 mv AnalysisTypeAsEnum.m $ISSM_DIR/src/m/shared/
