Changeset 80 for aedes_resviewer.m


Ignore:
Timestamp:
Feb 20, 2009, 3:06:07 PM (10 years ago)
Author:
tjniskan
Message:
  • Changed the historical "an2_" prefix to "aedes_" in all files. NOTE:

Any script or function relying to Aedes functions will be broken
because of this. Just do a search/replace from "an2_" to "aedes_" in
your files and all should be well...

  • Changed the name of an2_readtab.m to a more informative

aedes_readphasetable.m

File:
1 moved

Legend:

Unmodified
Added
Removed
  • aedes_resviewer.m

    r78 r80  
    1 function an2_resviewer(Res_in)
    2 % AN2_RESVIEWER - View and convert Aedes statistics results
     1function aedes_resviewer(Res_in)
     2% AEDES_RESVIEWER - View and convert Aedes statistics results
    33%   
    44%
    55% Synopsis:
    6 %       an2_resviewer(Res)
     6%       aedes_resviewer(Res)
    77%
    88% Description:
    9 %       The AN2_RESVIEWER function opens a graphical user interface (GUI) for
     9%       The AEDES_RESVIEWER function opens a graphical user interface (GUI) for
    1010%       handling Res-structures or *.res files saved from AEDES. If
    1111%       the function is called with the optional input argument Res, the
     
    2020%       tmp=load('resfile.res','mat'); % Read saved Res-file
    2121%       Res=tmp.Res;                   
    22 %       an2_resviewer(Res)                 % Open the loaded Res-structure
     22%       aedes_resviewer(Res)                 % Open the loaded Res-structure
    2323%
    2424% See also:
     
    8484 
    8585%% Load default font and colors
    86   GD=an2_gui_defaults;
     86  GD=aedes_gui_defaults;
    8787 
    8888  % Position figure to the center of the screen
     
    253253    isEnabled = 'on';
    254254  end
    255   btn_cdata = load('an2_cdata.mat');
     255  btn_cdata = load('aedes_cdata.mat');
    256256  tmp = get(H.EXPORT_FILETYPES_GRP,'position');
    257257  H.SELFILES_UIPANEL = uipanel('parent',H.MAIN_UIPANEL,...
     
    309309 
    310310  %% RESTABLE -----------------------------------
    311   %ResTable=an2_res2table('..\ROI_test\t1001001.res');
     311  %ResTable=aedes_res2table('..\ROI_test\t1001001.res');
    312312  H.RESTABLE = uitable('Parent',H.MAINFIG,'position',[10 10 fig_w-2*10 300]);
    313313  H.RESFRAME = uicontrol('parent',H.MAINFIG,...
     
    398398  if strcmpi(opt,'add')
    399399   
    400     [fname,pname]=an2_juigetfiles({'*.res;*.RES','Aedes Res-files (*.res)';...
     400    [fname,pname]=aedes_juigetfiles({'*.res;*.RES','Aedes Res-files (*.res)';...
    401401                   '*.*','All Files (*.*)'},...
    402402                              'Select Res-files',pwd);
     
    623623
    624624  % Generate cell table from Res
    625   ResTable = an2_res2table(Dat.Res,'sortbyroi',sortbyroi,...
     625  ResTable = aedes_res2table(Dat.Res,'sortbyroi',sortbyroi,...
    626626                       'decsep',decsep,'numdec',numdec,...
    627627                       'resfilename',Dat.ResFileName,...
     
    743743  %% Start Exporting files --------------------------
    744744  if ~Dat.SingleFileMode
    745     wbar_h=an2_wbar(0,{'Processing file','""'});
     745    wbar_h=aedes_wbar(0,{'Processing file','""'});
    746746    set(get(findall(wbar_h,'type','axes'),'title'),'interpreter','none')
    747747    nFiles = size(UD,1);
     
    751751      [fp,fn,fe]=fileparts(UD{ii,2});
    752752      outfilename = [outdir,fn];
    753       an2_wbar(ii/nFiles,wbar_h,{'Processing file',['"',resfilename,'"']});
     753      aedes_wbar(ii/nFiles,wbar_h,{'Processing file',['"',resfilename,'"']});
    754754     
    755755      % Open file
     
    771771     
    772772      % Generate cell table
    773       ResTable = an2_res2table(tmp.Res,'sortbyroi',sortbyroi,...
     773      ResTable = aedes_res2table(tmp.Res,'sortbyroi',sortbyroi,...
    774774                           'decsep',decsep,'numdec',numdec,...
    775775                           'resfilename',resfilename,...
     
    787787      % Write TXT
    788788      if WriteTXT
    789         bool = an2_cellwrite(ResTable,[outfilename,'.txt'],...
     789        bool = aedes_cellwrite(ResTable,[outfilename,'.txt'],...
    790790                         'delimitter','tab');
    791791        if ~bool
     
    857857   
    858858    % Generate cell table
    859     ResTable = an2_res2table(Dat.Res,'sortbyroi',sortbyroi,...
     859    ResTable = aedes_res2table(Dat.Res,'sortbyroi',sortbyroi,...
    860860                         'decsep',decsep,'numdec',numdec,...
    861861                         'resfilename','',...
    862862                         'dirs',Dat.dirs);
    863863   
    864     % Show an2_calc_wait
    865     [h,txh]=an2_calc_wait('');
     864    % Show aedes_calc_wait
     865    [h,txh]=aedes_calc_wait('');
    866866   
    867867    % Write XLS
     
    880880      set(txh,'string',{'Writing TXT file',[fpath,txtfname]})
    881881      drawnow
    882       bool = an2_cellwrite(ResTable,[fpath,txtfname],...
     882      bool = aedes_cellwrite(ResTable,[fpath,txtfname],...
    883883                       'delimitter','tab');
    884884      if ~bool
     
    948948%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    949949%
    950 % QUIT AN2_RESVIEWER
     950% QUIT AEDES_RESVIEWER
    951951%
    952952%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     
    957957  clear H Dat
    958958 
    959   % Close an2_resviewer window
     959  % Close aedes_resviewer window
    960960  delete(fig_h)
    961961 
     
    987987end % function l_ShowFullPath(h,
    988988
    989 end % function an2_resviewer(Res_in)
    990 
     989end % function aedes_resviewer(Res_in)
     990
Note: See TracChangeset for help on using the changeset viewer.

Powered by Trac 1.0.9.Copyright © Juha-Pekka Niskanen 2008