Problem running standalone app

4 次查看(过去 30 天)
Raju Kumar
Raju Kumar 2021-5-10
编辑: Raju Kumar 2021-5-10
I am writing a code to read files from two different instruments and trying to turn into an app (using MacOS). It works fine in matlab (2021a) but does not work in the standalone app. Can anybody help with this? Here is the code. Thank you.
function plotButtonPushed(app, event)
fileK = app.EditField.Value % K spectrum
[~,~,ext] = fileparts(which(fileK)); % detemine file extension
if strcmp(ext,'.txt')
dataK = load(fileK);
livetimeK = dataK(1,2);
else strcmp(ext,'.cnf')
[dataK realtimeK livetimeK] = readCNFv1(app, fileK); % to read cnf files
end
end

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by