Export logical uitable array to be used in separate GUI
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (1)
Walter Roberson
il 17 Apr 2016
0 voti
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.
1 Commento
Corey Williams
il 18 Apr 2016
Categorie
Scopri di più su App Building in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!