I can't run fastaread and uigetfile over the runtime-based standalone app!!!!

1 次查看(过去 30 天)
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

回答(2 个)

Shravan Kumar Vankaramoni
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
Steven Lord 2021-10-6
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 个评论
Mohammad Shahbazy
Mohammad Shahbazy 2021-10-7
编辑:Mohammad Shahbazy 2021-10-7
Thanks for your replies and ansewrs.
I did what you recmmended but now I have a new big issue to test it!
When I try to install the standalone it shows this error message "cannot find nonembedded CTF archive!".
I tried to find a solution but I have not any efficient one. I am using compatible Runtime (v910) and Matlab (R2021a) versions.
Please kindly guide me.
Many thanks

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 App Building 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by