is it possible to package an APP for my matlab function if there is input and output of my function?
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello, anybody can help? I got a question here about how to package an APP. Actually I got some errors. I want to generate a binary executable file for my function, and somebody told me that I can package an APP. While it is quite easy to do the package. After I install it, and run it, I got lots of errors. I am not quite familiar with Matlab, only know some basic programming. Here is the error I got: Error using sss_MODIS_aNN (line 25) Not enough input arguments.
Error in cal_sss_ngom_chenApp/startApp (line 60) obj.AppHandle = eval('sss_MODIS_aNN');
Error in cal_sss_ngom_chenApp (line 37) startApp(obj)
Error in appinstall.internal.runapp>execute (line 69) out = evalin('caller', [script ';']);
Error in appinstall.internal.runapp>runapp13a (line 51) outobj = execute(fullfile(appinstalldir, [wrapperfile 'App.m']));
Error in appinstall.internal.runapp>runcorrectversion (line 35) appobj = runapp13a(appinstalldir);
Error in appinstall.internal.runapp (line 17) out = runcorrectversion(appmetadata, appentrypoint, appinstalldir);
******************************************* From my understanding, this APP may not work for my purpose.
My function is like this:
function SSS... = sss_MODIS_aNN(sst,Rrs412,Rrs443,Rrs488,Rrs555,Rrs667,I)
Mean_In_I =[25.845,0.0060029,0.0059215,0.0054879,0.0029419,0.00055062];
Mean_Out_I =34.6156;
Sigma_In_I =[3.9969,0.0032383,0.0025417,0.0024277,0.0031689,0.0013846];
Sigma_Out_I =3.332;
Bias_In_I=importdata('b1_br_gom.mat');
Bias_Out_I=importdata('b2_br_gom.mat');
Weight_In_I=importdata('w1_br_gom.mat');
Weight_Out_I=importdata('w2_br_gom.mat');
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% nsst=(sst(I)-Mean_In_I(1))./Sigma_In_I(1);
nRrs412=(Rrs412(I)-Mean_In_I(2))./Sigma_In_I(2);
nRrs443=(Rrs443(I)-Mean_In_I(3))./Sigma_In_I(3);
nRrs488=(Rrs488(I)-Mean_In_I(4))./Sigma_In_I(4);
nRrs555=(Rrs555(I)-Mean_In_I(5))./Sigma_In_I(5);
nRrs667=(Rrs667(I)-Mean_In_I(6))./Sigma_In_I(6);
......
......
sss is the output, and there are 7 inputs.
I want to generate a binary executable file, so others can use this binary file to run my function, without accessing to my original code. The only thing they need to know is know the input and output format. Anybody have a clue?
Thank you very much!
Best, Cathy
0 commentaires
Réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!