필터 지우기
필터 지우기

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

조회 수: 2 (최근 30일)
Onur PEKER
Onur PEKER 2014년 10월 24일
편집: Onur PEKER 2014년 10월 24일
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