Export logical uitable array to be used in separate GUI
古いコメントを表示
I want to save data from one GUI logical uitable that sets the filename as the name entered in the Full Name edit box. Then later access all of the data at once with another GUI in order to compare the data and group sets of data together. Currently I have
function Submit_pushbutton_Callback(hObject, eventdata, handles)
BlazerID = get(handles.BlazerID_edit, 'string'); %get blazer id that was entered
Fullname = get(handles.FullName_edit, 'string'); %get full name
filename = strcat(BlazerID,Fullname); %combine Blazer ID and Fullname
hour = get(handles.hours_uitable, 'data'); %get data from uitable
save(filename, 'hour'); %save uitable data as .mat file with filename = Blazer ID and Fullname that was entered
The other GUI will import all .mat files from the current directory and compare the uitable logical data in order to combine groups of people together according to their available schedules. Currently I have
MyDirInfo = dir('*.mat');%load .mat files from current directory
but this doesn't seem to allow me direct access to the original uitable logical array
採用された回答
その他の回答 (1 件)
Walter Roberson
2016 年 4 月 17 日
0 投票
Your variable names hint that BlazerName is a directory, since "FullName" tends to hint at complete name. But you are not treating BlazerName as a directory: you are using strcat to combine it with FullName instead of using fullfile() . If it is intended to be a directory then you are missing out on the path separator between directory and file name.
カテゴリ
ヘルプ センター および File Exchange で App Building についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!