Home > vbmeg > functions > job > job_select_area_dir > select_time_window.m

select_time_window

PURPOSE ^

This function launches Time window application.

SYNOPSIS ^

function [ix_time_from, ix_time_to, cancelled] =select_time_window(ix_origin, ix_range_from, ix_range_to, sampling_freq,ix_initial_from, ix_initial_to)

DESCRIPTION ^

 This function launches Time window application.
 Time Window can be specified in the millisecond by using this.
 
 [IN]
    ix_origin      : origin point(= 0msec)
    ix_range_from  : Lower bound of index that can be specified.
    ix_range_to    : Upper bound of index that can be specified.
    sampling_freq  : sampling frequency
    ix_inital_from : Initial Start point
    ix_initial_to  : Initial End point

 [OUT]
    ix_time_from   : Start point index
    ix_time_to     : End   point index
    cancelled      : GUI cancelled or not.
                     = true  : CANCEL button or click x.
                     = false : OK button pressed.


 Copyright (C) 2011, ATR All Rights Reserved.
 License : New BSD License(see VBMEG_LICENSE.txt)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [ix_time_from, ix_time_to, cancelled] = ...
0002     select_time_window(ix_origin, ix_range_from, ix_range_to, sampling_freq, ...
0003                         ix_initial_from, ix_initial_to)
0004 % This function launches Time window application.
0005 % Time Window can be specified in the millisecond by using this.
0006 %
0007 % [IN]
0008 %    ix_origin      : origin point(= 0msec)
0009 %    ix_range_from  : Lower bound of index that can be specified.
0010 %    ix_range_to    : Upper bound of index that can be specified.
0011 %    sampling_freq  : sampling frequency
0012 %    ix_inital_from : Initial Start point
0013 %    ix_initial_to  : Initial End point
0014 %
0015 % [OUT]
0016 %    ix_time_from   : Start point index
0017 %    ix_time_to     : End   point index
0018 %    cancelled      : GUI cancelled or not.
0019 %                     = true  : CANCEL button or click x.
0020 %                     = false : OK button pressed.
0021 %
0022 %
0023 % Copyright (C) 2011, ATR All Rights Reserved.
0024 % License : New BSD License(see VBMEG_LICENSE.txt)
0025 
0026 %
0027 if ~exist('ix_initial_from', 'var')
0028     ix_initial_from = ix_range_from;
0029 end
0030 
0031 if ~exist('ix_initial_to', 'var')
0032     ix_initial_to = ix_range_to;
0033 end
0034 
0035 if ix_initial_from > ix_initial_to
0036     error('Time window range is invalid.');
0037 end
0038 
0039 % launch GUI application.
0040 [ix_time_from, ix_time_to, cancelled] = ...
0041     select_time_window_gui('init', ...
0042                         ix_origin, ix_range_from, ix_range_to,...
0043                         sampling_freq, ...
0044                         ix_initial_from, ix_initial_to);

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005