Can anybody help me about deploytool for loading new data to gui interface ?

1 view (last 30 days)
I design a gui interface and I want to use it with matlab compiler(deploytool). Data which is added previously is working correctly but when I want to add new data to gui , nothing is changing. I am not uploading new data. Only input_data matrix obtains in file also it is what I add. But I am not displaying it in gui surface. Can I add new data to programme? Following code is my loading code. Thank you in advance.
if true
function load_text_file_Callback(hObject, eventdata, handles)
[filename1,filepath1]=uigetfile({'*.txt*';'*.mat'});
length_fn=length(filename1);
st_pt=length_fn+1-4;
file_ext=filename1(st_pt:length_fn);
file_ext == '.txt' % if the file is a text file
fid_airflow = fopen(fullfile(filepath1, filename1));
input_data= textscan(fid_airflow,'%d');
fclose(fid_airflow);
input_data = double(cell2mat(input_data)); % this does not
end
save ('input_data.mat','input_data')
load('input_data')
end

Answers (0)

Categories

Find more on App Building 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!