Ignore:
Timestamp:
Feb 7, 2018, 7:48:52 PM (6 years ago)
Author:
sommeria
Message:

updated for Matlab 2016

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uigetfile_uvmat.m

    r1027 r1030  
    192192end
    193193set(hObject,'backgroundColor',[0 1 0])% indicate end button activation
    194 uiresume(get(hObject,'parent'))
     194fig_struct=get(hObject,'parent');
     195uiresume(fig_struct.Number)
    195196
    196197%------------------------------------------------------------------------
     
    334335ListCells=struct2cell(ListStruct);% transform dir struct to a cell arrray
    335336ListFiles=ListCells(1,:);%list of file names
    336 check_dir=cell2mat(ListCells(4,:));% =1 for directories, =0 for files
     337index_dir=find(strcmp('isdir',fieldnames(ListStruct)));
     338check_dir=cell2mat(ListCells(index_dir,:));% =1 for directories, =0 for files
    337339% for ilist=1:numel(check_dir)
    338340%     if check_dir(ilist)
Note: See TracChangeset for help on using the changeset viewer.