RTXI 1.3
hdf/RTXIh5_MATLAB/rtxibrowse.m File Reference

Go to the source code of this file.

Functions

 assert (~isempty(tag)&&strcmp(tag, '__rtxiplot__'),...%verify figure tag 'rtxiplot:ArgumentTypeMismatch', 'An rtxiplot figure is expected.')
else error ('You must have 3 arguments if you are specifying a figure handle:(rtxifig, filename, trialnumber)')
scrsz[left, bottom, width, height] set (rtxifig,'Position',[100 scrsz(4)/2 900 scrsz(4)/2])
 set (rtxifig,'Name', figname)

Variables

function rtxifig
function needs arguments if nargin
 fname = rtxifig
 scrsz = get(0,'ScreenSize')
end fileinfo = rtxi_read(fname)
 figname = ['RTXI HDF5 Browser v0.1 | ',fname,' | Trial ',num2str(trialNum),'/',num2str(fileinfo.numTrials)]
 trial = getTrial(fname,trialNum)
Trial info
meta numTrials = fileinfo.numTrials
meta trialNum = trialNum
for i

Function Documentation

assert ( isemptytag)&&strcmp(tag, '__rtxiplot__',
...%verify figure tag 'rtxiplot:ArgumentTypeMismatch'  ,
'An rtxiplot figure is expected.'   
)
else error ( 'You must have 3 arguments if you are specifying a figure handle:(rtxifig, filename, trialnumber)'  )
scrsz [left, bottom, width, height] set ( rtxifig  ,
'Position'   
)
set ( rtxifig  ,
'Name ,
figname   
)

Variable Documentation

figname = ['RTXI HDF5 Browser v0.1 | ',fname,' | Trial ',num2str(trialNum),'/',num2str(fileinfo.numTrials)]

Definition at line 46 of file rtxibrowse.m.

end fileinfo = rtxi_read(fname)

Definition at line 45 of file rtxibrowse.m.

Definition at line 37 of file rtxibrowse.m.

for i
Initial value:
1:trial.numChannels
    rtxiplot(rtxifig,trial.channels{i}, trial.parameters, meta, trial.time, trial.data(:,i), 'k-')

Definition at line 73 of file rtxibrowse.m.

Trial info

Definition at line 68 of file rtxibrowse.m.

end else if nargin
Initial value:
= 3
        tag = get(rtxifig, 'Tag')

Definition at line 27 of file rtxibrowse.m.

Definition at line 70 of file rtxibrowse.m.

end rtxifig
Initial value:
 rtxibrowse(rtxifig,fname,trialNum)
% rtxifig = rtxibrowse(rtxifig,fname,trialNum)
%
% INPUTS:
%   rtxifig - figure handle
%   fname   - filename of HDF5 file you want to read from
%   trialNum = trial number from HDF5 file that you want to plot
%
%
% OUTPUTS:
%   rtxifig - returns the figure handle that was used
%
% This function calls rtxiplot.m and creates an interface that allows you
% to plot two different channels from the same trial of an RTXI HDF5 File.
% Each axes is linked to its own listbox which contains all the available
% channels. The time axis is automatically computed from the experimental
% time step extracted from the HDF5 file. Double-clicking on a channel in
% the listbox will replot that channel in a separate window. The interface 
% also lists all the parameters settings for each trial. The figure name
% tells you what file the trial was plotted from and which trial you are
% plotting.
%
% AUTHOR: Risa Lin
% DATE:   10/31/2010

if (isscalar(rtxifig) && ishandle(rtxifig))  % re-use existing figure

Definition at line 1 of file rtxibrowse.m.

scrsz = get(0,'ScreenSize')

Definition at line 40 of file rtxibrowse.m.

trial = getTrial(fname,trialNum)

Definition at line 49 of file rtxibrowse.m.

meta trialNum = trialNum

Definition at line 71 of file rtxibrowse.m.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines