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

2 ビュー (過去 30 日間)
Mohammad Shahbazy
Mohammad Shahbazy 2021 年 9 月 22 日
編集済み: Mohammad Shahbazy 2021 年 10 月 7 日
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
filenameDB = [pathDB fileDB];
DB = fastaread(fileDB);
DBcell = struct2cell(DB);

回答 (2 件)

Shravan Kumar Vankaramoni
Shravan Kumar Vankaramoni 2021 年 10 月 6 日
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:
  1 件のコメント
Mohammad Shahbazy
Mohammad Shahbazy 2021 年 10 月 6 日
Hi Shravan,
Thanks for your reply. No, I am using Runtime ver. 9.10 and MATLAB R2021a that are matched.


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



Find more on C Shared Library Integration in Help Center and File Exchange




Community Treasure Hunt

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

Start Hunting!

Translated by