MATLAB: Loading a surface fit in a GUI

deploytoolfevalguisurface

I have a little problem with this code, it runs without any problems before compiling it using the deploy tol but when i compile it an error massage came which means that
%fit33 is originally a sfit and cant be treated as an object
and error using feval
here is the code
load fit33
SPS=feval(fit33,0.6,1);
i am Asking if there is any method to load fit33 and treat it as a surface fit then use feval, or is there is any other function rather than feval to evaluate the surface fit at this point
Thanks in Advance

Best Answer

the solution is to type
%#function sfit
before loading the file