Export logical uitable array to be used in separate GUI
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 17 de Abr. de 2016
0 votos
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 comentario
Corey Williams
el 18 de Abr. de 2016
Categorías
Más información sobre App Building en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!