Index: /trunk/src/compile.m
===================================================================
--- /trunk/src/compile.m	(revision 922)
+++ /trunk/src/compile.m	(revision 923)
@@ -43,6 +43,9 @@
     SubfctPath=['-I ' SubfctPath];%string indicating the option of including the path SubfctPath
 end
-hver=ver('MATLAB');
-FctNameVersion=[FctName '_MCRROOT' regexprep(hver.Version,'\.','')];%suppress the dot in version number
+[mcrmajor, mcrminor] = mcrversion;   
+MCRROOT = ['MCRROOT',int2str(mcrmajor),int2str(mcrminor)];
+FctNameVersion=[FctName,'_',MCRROOT];
+%hver=ver('MATLAB');
+%FctNameVersion=[FctName '_MCRROOT' regexprep(hver.Version,'\.','')];%suppress the dot in version number
 try
     disp(['mcc -m -R -nojvm -R -nodisplay -R -singleCompThread ' SubfctPath ' ' FctName '.m'])
Index: /trunk/src/series.m
===================================================================
--- /trunk/src/series.m	(revision 922)
+++ /trunk/src/series.m	(revision 923)
@@ -1510,6 +1510,8 @@
     set(handles.series,'Pointer','watch') % set the mouse pointer to 'watch'
     set(handles.ActionExt,'BackgroundColor',[1 1 0])
-    hver=ver('MATLAB');
-    MCRROOT=['MCRROOT' regexprep(hver.Version,'\.','')];%suppress the dot in version number
+    [mcrmajor, mcrminor] = mcrversion;   
+    MCRROOT = ['MCRROOT',int2str(mcrmajor),int2str(mcrminor)];
+    %hver=ver('MATLAB');
+    %MCRROOT=['MCRROOT' regexprep(hver.Version,'\.','')];%suppress the dot in version number
     RunTime = getenv(MCRROOT);
     ActionNameVersion=[ActionName '_' MCRROOT];
