Changeset 107 for trunk/src/get_field.m
- Timestamp:
- Jul 26, 2010, 11:20:39 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/get_field.m
r89 r107 784 784 function RUN_Callback(hObject, eventdata, handles) 785 785 %--------------------------------------------------------- 786 %path_get_field=fileparts(which('get_field'));787 %list=get(handles.ACTION,'String');788 786 index=get(handles.ACTION,'Value'); 789 % ACTION=list{index};790 787 list_func=get(handles.ACTION,'UserData'); 791 788 h_fun=list_func{index}; 792 % %hselect_field=get(handles.inputfile,'parent');%handle of the get_field interface793 % fct_path=list_path{index}; %path stored for the function ACTION794 % if ~isequal(fct_path,path_get_field)795 % addpath(fct_path)% add the prescribed path if not the current one796 % end797 % eval(['h_fun=@' ACTION ';'])798 % if ~isequal(fct_path,path_get_field)799 % rmpath(fct_path)% add the prescribed path if not the current one800 % end801 789 set(handles.RUN,'BackgroundColor',[0.831 0.816 0.784]) 802 790 drawnow … … 1026 1014 if isfield(Field, Field.ListGlobalAttribute{iline}) 1027 1015 eval(['val=Field.' Field.ListGlobalAttribute{iline} ';']) 1028 if ischar(val); 1016 if ischar(val);% attribute value is char string 1029 1017 Tabcell{iline,2}=val; 1030 else 1018 elseif size(val,1)==1 %attribute value is a number or matlab vector 1031 1019 Tabcell{iline,2}=num2str(val); 1032 1020 end … … 1458 1446 % -------------------------------------------------------------------- 1459 1447 function MenuExportField_Callback(hObject, eventdata, handles) 1460 1448 global Data_get_field 1449 % huvmat=findobj(allchild(0),'Name','uvmat'); 1450 inputfile=get(handles.inputfile,'String'); 1451 Data_get_field=nc2struct(inputfile); 1452 % Data_view_field=UvData.ProjField_2; 1453 evalin('base','global Data_get_field')%make CurData global in the workspace 1454 display(['content of ' inputfile ':']) 1455 evalin('base','Data_get_field') %display CurData in the workspace 1456 commandwindow; 1461 1457 1462 1458 % --------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.