How to make a Stand alone Application contains Surface fit !!
Mostra commenti meno recenti
i've finished my small program but there is a problem, i am using
fit2 = evalin('base','fit2')
but fit2 must be in the work space, the problem is after compiling the program it doesnt run, because there is no work space, i am trying to find a funtion that make matlab reads that surface fit directly from the computer not the work space can any one help .. ! thx in Advance
Risposte (1)
Image Analyst
il 19 Feb 2013
0 voti
Well how did it get into the workspace? If it wasn't generated by your program, then you probably read it in from a file. Just do the same thing in your compiled app.
6 Commenti
Ahmed
il 19 Feb 2013
Image Analyst
il 20 Feb 2013
Forget about compiling it for now. Let's say you are just running the m-file in the regular normal MATLAB develoment environment. Now, your m-file hauls in this "fit2" variable from the "base" workspace into the local workspace of your m-file. OK, but how did "fit2" get into the base workspace in the first place? It didn't just magically poof itself into existence because it thought you might need it. Somehow YOU must have run some code to cause fit2 to be in the base workspace. So, what code did you run to cause that?
Ahmed
il 20 Feb 2013
Walter Roberson
il 20 Feb 2013
load() the matrix inside a function and share the data. See http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.3F
Image Analyst
il 20 Feb 2013
Most likely it doesn't work because you didn't specify the proper folder. In fact you probably didn't specify any folder at all and expected the file to live in the same folder as the executable. This is reasonable, but unfortunately, wrong. You must specify the folder where it lives, because the current folder when you executable runs is not the folder where the .exe is, it's some secret hidden folder that you'd never guess where it is.
Ahmed
il 20 Feb 2013
Categorie
Scopri di più su Get Started with Curve Fitting Toolbox in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!