DSPRelated.com
Forums

problem in compiling

Started by Leila Moballegh July 30, 2009
Hi
I have written a program in MATLAB using fit and fitoptions functions
 
opts = fitoptions('exp1','Norm','on','start',[-1 100]);
[fresult,gof,output] = fit(x,yy,'exp1');
 
I didn’t get any error in matlab. As I plan to deploy my program using visual basic I created mex files of fit and fitoptions through  ‘ mcc –x  fit  and mcc –x fitoptions
I compiled my functions through matlab com builder without any warning
But when I run my visual basic program I encounter “undefined function or variable fittype”
I added mex file of fittype to my project but the problem persists. I have wondered what the source of the problem is. Please help me   
 
Thanks
Leila