Code covered by the BSD License  

Highlights from
matbrows

from matbrows by Joshua Malina
Matbrowse is GUI-based function for managing MAT-Files.

matbrowse_gui()
function fig = matbrowse_gui()
% This is the machine-generated representation of a Handle Graphics object
% and its children.  Note that handle values may change when these objects
% are re-created. This may cause problems with any callbacks written to
% depend on the value of the handle at the time the object was saved.
% This problem is solved by saving the output as a FIG-file.
%
% To reopen this object, just type the name of the M-file at the MATLAB
% prompt. The M-file and its associated MAT-file must be on your path.
% 
% NOTE: certain newer features in MATLAB may not have been saved in this
% M-file due to limitations of this format, which has been superseded by
% FIG-files.  Figures which have been annotated using the plot editor tools
% are incompatible with the M-file/MAT-file format, and should be saved as
% FIG-files.

load matbrowse_gui

h0 = figure('Units','points', ...
	'Color',[0.8 0.8 0.8], ...
   'Colormap',mat0, ...
	'FileName','matbrowse_gui.m', ...
	'MenuBar','none', ...
	'Name','MAT-File Browser', ...
	'NumberTitle','off', ...
	'PaperPosition',[18 180 576 432], ...
	'PaperUnits','points', ...
	'Position',[237.5 114.25 409.5 288], ...
	'Resize','off', ...
	'Tag','matbrowse', ...
	'ToolBar','none');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0 1 1], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[0.999375 270.7500000000001 87.745125 9.750000000000009], ...
	'String','File Name', ...
	'Style','text', ...
	'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'Callback','matbrowse edFile;', ...
	'FontName','Courier New', ...
	'FontSize',10, ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[1.05197368421053 252.631578947368 325 18.0451127819549], ...
	'Style','edit', ...
	'Tag','edFile', ...
	'TooltipString','Opened MAT-File');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0 1 1], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[4.797 225.7500000000001 87.745125 12.00000000000001], ...
	'String','File Varibles List', ...
	'Style','text', ...
	'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'Callback','matbrowse lbFile;', ...
	'FontName','Courier New', ...
	'FontSize',10, ...
	'HorizontalAlignment','left', ...
	'Position',[1.05197368421053 144.360902255639 325 72.1804511278195], ...
	'Style','listbox', ...
	'Tag','lbFile', ...
	'TooltipString','List of file variables', ...
	'Value',1);
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Enable','inactive', ...
	'FontName','Ms Sans Serif', ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[0.75 17.25 393.75 18], ...
	'String','Use Browse pushbutton to open MAT-File', ...
	'Style','edit', ...
	'Tag','Status');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Callback','matbrowse pbLoad;', ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[81.56587499999992 0 72.75000000000011 18], ...
	'String','Load Selected', ...
	'Tag','pbLoad', ...
	'TooltipString','Load selected variables to ws struct');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'Callback','matbrowse pbClose;', ...
	'ListboxTop',0, ...
	'Position',[326.25 0 72.74999999999999 18], ...
	'String','Close', ...
	'Tag','pbClose', ...
	'TooltipString','Close MAT-File browser');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Callback','matbrowse pbBrowse;', ...
	'ListboxTop',0, ...
	'Position',[332.25 252.75 67.5 18], ...
	'String','Browse', ...
	'Tag','pbBrowse', ...
	'TooltipString','Find file for opening');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'Callback','matbrowse lbSelected;', ...
	'FontName','Courier New', ...
	'FontSize',10, ...
	'HorizontalAlignment','left', ...
	'Position',[1.05197368421053 36.0902255639098 325 72.1804511278195], ...
	'Style','listbox', ...
	'Tag','lbSelected', ...
	'TooltipString','List of selected variables', ...
	'Value',1);
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'Callback','matbrowse pbSelect;', ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[332.25 192.75 67.5 18], ...
	'String','Select', ...
	'Tag','pbSelect', ...
	'TooltipString','Copy variable to Selected List');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'Callback','matbrowse pbRemove;', ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[332.25 84.75 67.5 18], ...
	'String','Remove', ...
	'Tag','pbRemove', ...
	'TooltipString','Remove variable from Selected List');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Callback','matbrowse pbLoadAll;', ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[0 0 72.75449999999999 18.04511278195488], ...
	'String','Load All', ...
	'Tag','pbLoadAll', ...
	'TooltipString','Load all file variables to the ws struct');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'Callback','matbrowse pbSelectAll;', ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[332.25 174.75 67.5 18], ...
	'String','Select All', ...
	'Tag','pbSelectAll', ...
	'TooltipString','Select all variables');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'Callback','matbrowse pbRemoveAll;', ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[332.25 66.75 67.5 18], ...
	'String','Remove all', ...
	'Tag','pbRemoveAll', ...
	'TooltipString','Clear Selected List');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'Callback','matbrowse pbSaveSel;', ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[332.25 48 67.5 19.5], ...
	'String','Save Select', ...
	'Tag','pbSaveSel', ...
	'TooltipString','Save selected variables as MAT-file');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Enable','inactive', ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[4.50000000000002 216.75 114 9.750000000000011], ...
	'String','Name', ...
	'Style','text', ...
	'Tag','StaticText3');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Enable','inactive', ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[180 216 75 9.75], ...
	'String','Class', ...
	'Style','text', ...
	'Tag','StaticText3');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Enable','inactive', ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[257.25 216.75 68.25 9.75], ...
	'String','Bytes', ...
	'Style','text', ...
	'Tag','StaticText3');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Enable','inactive', ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[4.797 108.75 114 9], ...
	'String','Name', ...
	'Style','text', ...
	'Tag','StaticText3');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Enable','inactive', ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[180 108 75 9], ...
	'String','Class', ...
	'Style','text', ...
	'Tag','StaticText3');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Enable','inactive', ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[257.25 108 68.25 9.75], ...
	'String','Bytes', ...
	'Style','text', ...
	'Tag','StaticText3');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[120.75 216 57 9.75], ...
	'String','Size', ...
	'Style','text', ...
	'Tag','StaticText3');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[120.75 108 57 9], ...
	'String','Size', ...
	'Style','text', ...
	'Tag','StaticText3');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0 1 1], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[4.797 117.7500000000001 87.745125 11.25], ...
	'String','Selected Variables List', ...
	'Style','text', ...
	'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Callback','matbrowse pbLoadAllWS;', ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[163.1272499999999 0 72.75000000000011 18], ...
	'String','Load All WS', ...
	'Tag','pbLoadAllWS', ...
	'TooltipString','Load all file variables to the workspace');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Callback','matbrowse pbLoadWS;', ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[244.6886249999999 0 72.75 18], ...
	'String','Load Selected WS', ...
	'Tag','pbLoadWS', ...
	'TooltipString','Load selected variables to workspace');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Callback','matbrowse pbLoadWSVar;', ...
	'ListboxTop',0, ...
	'Position',[332.25 234.75 67.5 18], ...
	'String','Load WS Var', ...
	'Tag','pbLoadWSVar', ...
	'TooltipString','Find base workspace variables');
if nargout > 0, fig = h0; end

Contact us at files@mathworks.com