Problem running standalone app

2 views (last 30 days)
Raju Kumar
Raju Kumar on 10 May 2021
Edited: Raju Kumar on 10 May 2021
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

Answers (0)

Categories

Find more on Develop Apps Using App Designer 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!