I can't run fastaread and uigetfile over the runtime-based standalone app!!!!
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi all,
I can't run uigetfile followed by fastaread to load my fasta file. I checked and runit several times in the app designer but now it does not run in the standalone executable version (running alongside MATLAB runtime ver. 9.10)!!! That's so important to my app. Please help and guide me. My code is here:
function BrowseDBButtonPushed(app, event)
[fileDB,pathDB] = uigetfile({'*.fasta'}, 'Load FASTA Proteome DB');
if fileDB==0
return;
end
filenameDB = [pathDB fileDB];
DB = fastaread(fileDB);
DBcell = struct2cell(DB);
end
Thanks
0 Kommentare
Antworten (2)
Shravan Kumar Vankaramoni
am 6 Okt. 2021
Hi,
As you are able to Run it in the AppDesigner but it is not working once converted to an executable. So the problem could be the mismatch between MATLAB version you used to compile and the Runtime version. The application will be linked to specific version of MCR you used to compile. A newer or older MCR installed doesnt work with an app compiled in a specific version of MCR.
Refer the below links to solve the version mismatch issue:
Steven Lord
am 6 Okt. 2021
filenameDB = [pathDB fileDB];
This line looks slightly suspicious. I'd prefer to use fullfile to assemble the filename.
filenameDB = fullfile(pathDB, fileDB);
If that doesn't resolve the problem, can you provide a bit more detail about what "it does not run" means in this context?
- Do you receive warning and/or error messages if you launch the application from a Windows command prompt window or a terminal window in Linux or Mac? If so the full and exact text of those messages may be useful in determining what's going on and how to avoid the warning and/or error.
- Does it do something different than what you expected? If so, what did it do and what did you expect it to do?
- Did the application crash? If so please send the crash log file (with a description of what you were running or doing in the app when the crash occured) to Technical Support using the Contact Support link on the Support section of the MathWorks website so we can investigate.
1 Kommentar
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!