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

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

回答(0 个)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by