Loading a surface fit in a GUI

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

 採用された回答

Ahmed
Ahmed 2013 年 4 月 8 日

0 投票

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

その他の回答 (1 件)

Laurine
Laurine 2013 年 8 月 29 日

0 投票

Hi,
I am having the same issue, but then using a LinearModel.fit. My GUI runs fine using Matlab, but on a computer without Matlab, the GUI is not able to load the LinearModel.fit. Is there a command to put in the GUI so my GUI will load the LinearModel?

カテゴリ

ヘルプ センター および File ExchangeGet Started with Curve Fitting Toolbox についてさらに検索

質問済み:

2013 年 4 月 6 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by