PageRenderTime 200ms queryTime 47ms sortTime 0ms getByIdsTime 46ms findMatchingLines 32ms

100+ results results for 'Inputfile: lang:MATLAB' (200 ms)

Not the results you expected?
get_DR_quads.m http://slac-lucretia.googlecode.com/svn/trunk/ | MATLAB | 327 lines
                    
13%
                    
14% INPUTs (opCode=1):
                    
15%
                    
21%
                    
22% INPUTs (opCode=2):
                    
23%
                    
72
                    
73% check input args
                    
74
                    
86  if (nargin<4)
                    
87    error('At least 4 input arguments required for opCode=1')
                    
88  end
                    
103  if (nargin<3)
                    
104    error('At least 3 input arguments required for opCode=2')
                    
105  end
                    
                
pa_HartigansDipTest.m http://p-and-a.googlecode.com/svn/trunk/ | MATLAB | 305 lines
                    
8%
                    
9% Appended by F. Mechler (September 2 2002) to deal with a perfectly unimodal input
                    
10% This check the original Hartigan algorithm omitted, which leads to an infinite cycle
                    
30   ifault=1;
                    
31   fprintf(1,'\nHartigansDipTest.    InputError :  ifault=%d\n',ifault);
                    
32   return;
                    
40   ifault=2;
                    
41   fprintf(1,'\nHartigansDipTest.    InputError :  ifault=%d\n',ifault);
                    
42   return;
                    
48      ifault=3;
                    
49      fprintf(1,'\nHartigansDipTest.    InputError :  ifault=%d\n',ifault);
                    
50      return;
                    
79   ifault=5;
                    
80	%fprintf(1,'\n  The input is a perfectly UNIMODAL input function\n');
                    
81   return;
                    
                
device_type.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 207 lines
                    
9%      DEVICE_TYPE('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in DEVICE_TYPE.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to device_type_OpeningFcn via varargin.
                    
17%
                    
                
warp_apply.m http://fieldtrip.googlecode.com/svn/trunk/ | MATLAB | 192 lines
                    
31%
                    
32% If the method 'homogeneous' is selected, the input matrix M should be
                    
33% a 4x4 homogenous transformation matrix.
                    
76  % convert the input points from 2D to 3D representation
                    
77  input(:,3) = 0;
                    
78  input3d = false;
                    
86if any(strcmp(method, {'nonlinear', 'nonlin0', 'nonlin1', 'nonlin2', 'nonlin3', 'nonlin4', 'nonlin5'}))
                    
87  x = input(:,1);
                    
88  y = input(:,2);
                    
153    
                    
154  %warped = M * [input'; ones(1, size(input, 1))];
                    
155  %warped = warped(1:3,:)';
                    
157  % below achieves the same as lines 154-155
                    
158  warped = [input ones(size(input, 1),1)]*M(1:3,:)';
                    
159  
                    
                
legend.m https://octave.svn.sourceforge.net/svnroot/octave | MATLAB | 200 lines
                    
81## 2003-06-12 Quentin Spencer
                    
82##   * add support for input in cell array format
                    
83## 2005-01-11 Teemu Ikonen
                    
                
getpc6header.m http://acq3.googlecode.com/svn/trunk/ | MATLAB | 238 lines
                    
57% Trial hierarhcy information
                    
58pc6h.nADCNumChannels=fread(fid,1,'short'); % 120 (number of analog input channels sampled)
                    
59pc6h.fADCSampleInterval=fread(fid,1,'float'); % 122 (interval between multiplexed channels)
                    
                
vis_valuetype.m http://research-code-base-animesh.googlecode.com/svn/trunk/ | MATLAB | 269 lines
                    
6%
                    
7%  Input and output arguments:
                    
8%   value  (varies) variable to be checked
                    
                
ode23.m https://octave.svn.sourceforge.net/svnroot/octave | MATLAB | 181 lines
                    
54%
                    
55% INPUT:
                    
56% FUN   - String containing name of user-supplied problem description.
                    
                
testCalCC.m http://horwitzlab.googlecode.com/svn/ | MATLAB | 112 lines
                    
17CMCheckInit(1, 'USA19H')
                    
18input('Press <Enter> to continue');
                    
19
                    
                
ft_datatype_freq.m http://open-realtime-fmri.googlecode.com/svn/trunk/ | MATLAB | 98 lines
                    
72
                    
73% get the optional input arguments, which should be specified as key-value pairs
                    
74version = keyval('version', varargin); if isempty(version), version = 'latest'; end
                    
                
gui_help.m git://github.com/yuval-harpaz/ft_BIU.git | MATLAB | 224 lines
                    
61    '                                                                           '
                    
62    'If the input matrix contains the signals as column vectors instead of      '
                    
63    'row vectors, click on TRANSPOSE to transpose the data matrix.              '
                    
156    '                                                                      '
                    
157    'You can input the ''Initial state'' of the algorithm, i.e. the initial  '
                    
158    'value for A. Choose ''guess'' in the drop-down menu ''Initial state'',    '
                    
183  helptext = [...
                    
184    'Input the name of the variable in Matlab workspace that contains the  '
                    
185    'data. The data must be in a single matrix, each row (or column) giving'
                    
194  helptext = [...
                    
195    'Input the name of the variable in Matlab workspace that contains the'
                    
196    'initial value for the mixing matrix A, and click OK. If the initial '
                    
                
subplot.m https://octave.svn.sourceforge.net/svnroot/octave | MATLAB | 186 lines
                    
25##
                    
26## Input:
                    
27##
                    
99    if (! (isscalar (rows) && rows >= 0))
                    
100      error ("subplot: input rcn has to be a positive scalar");
                    
101    endif
                    
                
help_coord.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 74 lines
                    
9%      HELP_COORD('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in HELP_COORD.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to help_coord_OpeningFcn via varargin.
                    
17%
                    
                
changeP.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 95 lines
                    
38    end
                    
39    % for simulation case, change input beam momentum (dp required)
                    
40    if (debug)
                    
                
read_neuralynx_dma.m http://open-realtime-fmri.googlecode.com/svn/trunk/ | MATLAB | 281 lines
                    
39% The data is simply a stream of constant size records,  the size of the
                    
40% record is dependant on the number of Input Boards in the system.  8 in your
                    
41% case, there are 32 - 32 bit integers from each Input Board.
                    
125
                    
126% deal with ascii and numeric input for the channel selection
                    
127if nargin>3 && ~ischar(channel)
                    
                
read_plexon_nex.m git://github.com/yuval-harpaz/ft_BIU.git | MATLAB | 193 lines
                    
45
                    
46% parse the optional input arguments
                    
47hdr       = keyval('header', varargin);
                    
                
imrotate.m https://octave.svn.sourceforge.net/svnroot/octave | MATLAB | 225 lines
                    
19##
                    
20## Input parameters:
                    
21##
                    
61function [imgPost, H, valid] = imrotate(imgPre, thetaDeg, interp="bilinear", bbox="loose", extrapval=NA)
                    
62  ## Check input
                    
63  if (nargin < 2)
                    
63  if (nargin < 2)
                    
64    error("imrotate: not enough input arguments");
                    
65  endif
                    
67  if (tmp != 1 || (imchannels != 1 && imchannels != 3))
                    
68    error("imrotate: first input argument must be an image");
                    
69  endif
                    
85
                    
86  ## Input checking done. Start working
                    
87  thetaDeg = mod(thetaDeg, 360); # some code below relies on positive angles
                    
                
dXPMDHID.m http://dotsx.googlecode.com/svn/trunk/ | MATLAB | 1 lines
                    
1function [p_, attributes_, batchMethods_] = dXPMDHID(num_objects)
% function [p_, attributes_, batchMethods_] = dXPMDHID(num_objects)
%
% Constructor method for class dXPMDHID
%   works with PMD-1208FS/USB-1208FS USB/HID digital-analog converter box
%
% Input:
%   num_objects ... ignored -- always creates just one
%
% Output:
%   p_            ... created object
%   attributes_   ... default object attributes
%   batchMethods_ ... methods that can be run in a batch (e.g., draw)
%   dependencies_ ... not used

% Copyright 2005 by Joshua I. Gold
%   University of Pennsylvania

global ROOT_STRUCT

% look for mex function
available = exist('HIDx');

% return empty matrix if not available, which
% will automatically remove PMDHID devices from the ui queue
% if called from rInit
if isfield(ROOT_STRUCT, 'dXPMDHID') || ~available
    p_            = [];
    attributes_   = [];
    batchMethods_ = [];
    return
end

% how to find compatible device
%   the master device of the PMD-1208FS/USB-1208FS composite device
HIDCriteria.manufacturer = 'MCC';
HIDCriteria.vendorID = 2523;
HIDCriteria.productID = 130;
HIDCriteria.totalElements = 89;

% default channelizer: make one useless channel
HIDChannelizer.gain = 1;
HIDChannelizer.offset = 0;
HIDChannelizer.high = nan;
HIDChannelizer.low = nan;
HIDChannelizer.delta = 0;
HIDChannelizer.freq = 1;

[resetReport, resetID] = formatPMDReport('Reset');

% default object attributes
attributes = { ...
    % name          type        ranges(?)	default
    'available',	'boolean',  [],         available;	...
    'active',       'boolean',  [],         false;      ...
    'FIRAdataType', 'string',   [],         'PMDHIDData'; ...
    'HIDClass',     'string',   [],         'dXPMDHID'; ...
    'HIDCriteria',  'struct',   [],         HIDCriteria; ...
    'HIDChannelizer','struct',  [],         HIDChannelizer; ...
    'HIDIndex',     'scalar',   [],         nan;        ...
    'HIDDeviceInfo','struct',   [],         [];         ...
    'HIDElementsInfo','struct', [],         [];         ...
    'resetID',      'scalar',   [],         resetID;    ...
    'resetReport',  'uint8',    [],         resetReport;...
    'loadID',       'scalar',   [],         [];         ...
    'loadReport',   'uint8',    [],         [];         ...
    'startID',      'scalar',   [],         [];         ...
    'startReport',	'uint8',    [],         [];         ...
    'stopID',       'scalar',   [],         [];         ...
    'stopReport',   'uint8',    [],         [];         ...
    'mappings',     'cell',     [],         [];         ...
    'startScanTime','auto',     [],         0;          ...
    'offsetTime',   'auto',     [],         0;          ...
    'default',      'auto',     [],         [];         ...
    'other',        'auto',     [],         [];         ...
    'checkList',    'auto',     [],         [];         ...
    'checkRet',     'auto',     [],         [];         ...
    'values',       'auto',     [],         [];         ...
    'recentVal',    'auto',     [],         1};

% make an array of objects from structs made from the attributes
p_ = class(cell2struct(attributes(:,4), attributes(:,1), 1), 'dXPMDHID');

% return the attributes, if necessary
if nargout > 1
    attributes_ = attributes;
end

% return list of batch methods
if nargout > 2
    batchMethods_ = {'reset', 'saveToFIRA', 'root', 'getJump'};
end
                    
                
zp2sos.m https://octave.svn.sourceforge.net/svnroot/octave | MATLAB | 137 lines
                    
20%%
                    
21%% INPUTS:@*
                    
22%% @itemize
                    
                
irsa_jitsp.m https://octave.svn.sourceforge.net/svnroot/octave | MATLAB | 125 lines
                    
23## 
                    
24## Input:
                    
25##
                    
                
nlnewmark.m https://octave.svn.sourceforge.net/svnroot/octave | MATLAB | 189 lines
                    
32##
                    
33## @strong{Inputs}
                    
34##
                    
101
                    
102# Take care of unititalized input variables
                    
103
                    
                
ft_definetrial.m http://brainstream.googlecode.com/svn/trunk/ | MATLAB | 167 lines
                    
48% have to write yourself. The function should take the cfg-structure as
                    
49% input and should give a Nx3 matrix in the same format as "trl" as the
                    
50% output. You can add extra custom fields to the configuration structure to
                    
85
                    
86% check if the input cfg is valid for this function
                    
87cfg = checkconfig(cfg, 'trackconfig', 'on');
                    
                
model.m https://code.google.com/p/bionetgen/ | MATLAB | 273 lines
                    
13%
                    
14%   INPUTS:
                    
15%   -------
                    
20%
                    
21%   Note: to specify default value for an input argument, pass the empty array.
                    
22%
                    
35
                    
36%% Process input arguments
                    
37
                    
                
convert_unit.m http://guillaumemaze.googlecode.com/svn/trunk/ | MATLAB | 383 lines
                    
7%
                    
8% Inputs:
                    
9%	SUBST_CONTENT: a double array of any dimensions
                    
68
                    
69%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Input check
                    
70% Number or arguments:
                    
123if verb
                    
124	disp(sprintf('[output] = [input]*(1)/(2)'));
                    
125end
                    
                
filetype_check_uri.m http://open-realtime-fmri.googlecode.com/svn/trunk/ | MATLAB | 237 lines
                    
41
                    
42% these are for remembering the type on subsequent calls with the same input arguments
                    
43persistent previous_argin previous_argout
                    
45if nargin<2
                    
46  % ensure that all input arguments are defined
                    
47  ftyp = [];
                    
158
                    
159% remember the current input and output arguments, so that they can be
                    
160% reused on a subsequent call in case the same input argument is given
                    
                
gui_active.m http://slac-lucretia.googlecode.com/svn/trunk/ | MATLAB | 39 lines
                    
1function ret = gui_active(optional_input)
                    
2%
                    
20if (nargin > 0)
                    
21    if (optional_input == -1) 
                    
22        drawnow;
                    
27        prev_is_active  = is_active;
                    
28        is_active       = optional_input;
                    
29        if ((prev_is_active > 0) & (is_active == 0))
                    
                
curlyh.m http://slac-lucretia.googlecode.com/svn/trunk/ | MATLAB | 40 lines
                    
7%
                    
8%  Inputs:
                    
9%
                    
                
ft_combineplanar.m http://brainstream.googlecode.com/svn/trunk/ | MATLAB | 278 lines
                    
26% cfg.trials
                    
27% cfg.inputfile     = one can specifiy preanalysed saved data as input
                    
28% cfg.outputfile    = one can specify output as file to save to disk
                    
58if ~isfield(cfg, 'feedback'),      cfg.feedback       = 'none';     end
                    
59if ~isfield(cfg, 'inputfile'),     cfg.inputfile      = [];         end
                    
60if ~isfield(cfg, 'outputfile'),    cfg.outputfile     = [];         end
                    
62hasdata = (nargin>1);
                    
63if ~isempty(cfg.inputfile)
                    
64  % the input data should be read from file
                    
65  if hasdata
                    
66    error('cfg.inputfile should not be used in conjunction with giving input data to this function');
                    
67  else
                    
67  else
                    
68    data = loadvar(cfg.inputfile, 'data');
                    
69  end
                    
                
plx_ad.m http://horwitzlab.googlecode.com/svn/ | MATLAB | 135 lines
                    
5%
                    
6% INPUT:
                    
7%   filename - if empty string, will use File Open dialog
                    
20if(nargin ~= 2)
                    
21   disp('2 input arguments are required')
                    
22   return
                    
                
whip_eig.m git://github.com/moorepants/PhysicalParameters.git | MATLAB | 88 lines
                    
70% Calculate the A matrix in x'' = Ax + Bu, the state vector is
                    
71% [q4 q7 u4 u7]' and the input vector is u=[T4 T7]'
                    
72A(1,1) = 0;
                    
                
melba.m git://github.com/smcg/MARTA.git | MATLAB | 1 lines
                    
1function mOut = melba(varargin)
%MELBA  - Matlab Event Labelling By Acoustics
%
%	usage:  melba data
%	        melba(data)
%	        melba(data, params)
%
%	        melba abort		% close all MELBA viewers
%
% where DATA is one of
%	MAVIS-compatible struct
%	AUDIO object
%	signal, sRate pair (where signal can be a [nSamps x nSignals] aggregate)
%	string evaluating to a (possibly wild-carded) MS WAV filename (include extension)
%	string evaluating to a (possibly wild-carded) variable name
%	cell string array of variable names
%	  (if variables not found in workspace loaded from mat or wav files on path)
%
% and PARAMS is one of the following NAME, VALUE pairs:
%	CLOSE   - user-specified function to call when window closes
%	CONFIG  - specify a previously saved configuration variable
%	LABELS  - specify a set of previously defined labels
%	LPROC   - specify a user labelling procedure
%	PALATE  - specify a [nPoints x X,Y] palate trace
%	SEX     - specify subject gender ({'M'}|'F'; affects F0 heuristics)
%	SPLINE  - specify indices into data of (tongue) points to connect by spline
%	SPREAD  - specify signal scaling (use 'AUTO' for self-normalization)
%	HEAD/TAIL - specify display offsets in msecs
%	CHANNEL - specify {'B'}|'L'|'R' for stereo input signals ('B' for both)
%
% entering melba alone will pop any active viewers forward, else display help
%

% mark tiede fecit
vers = 'mkt  01/10/08 v4.0';

%-----------------------------------------------------------------------------
%	no args:  if any MELBA viewers active, pop 'em forward, else show help

if nargin < 1,
	set(0,'ShowHiddenHandles', 'on');
	h = findobj('Tag', 'MELBA');
	set(0,'ShowHiddenHandles', 'off');
	if isempty(h),
		eval('help melba');
	else,
		for i = 1 : length(h),
			figure(h(i));
		end;
	end;
	return;
end;


%-----------------------------------------------------------------------------
%	parse args

if ischar(varargin{1}),					% command line argument
	action = upper(varargin{1});
elseif isstruct(varargin{1}),			% mavis-compatible data
	action = 'INIT';
	data = varargin{1};
	labels = [];
	for i = 1 : length(data),			% use 1st monodimensional vector
		if size(data(i).SIGNAL,2) == 1,
			signal = double(data(i).SIGNAL);
			sRate = data(i).SRATE;
			if isstruct(data) & isfield(data,'LABELS'),
				labels = data(i).LABELS;
				if isfield(labels,'NOTE'),	% bw compatibility
					lx = rmfield(labels, 'NOTE');
					for li = 1 : length(labels),
						lx(li).HOOK = labels(li).NOTE;
					end;
					labels = lx;
				end;
			end;
			break;
		end;
	end;
	names = {data.NAME};
	k = strmatch('FORMANTS',names,'exact');
	if ~isempty(k),
		formants = data(k).SIGNAL;
		data(k) = [];
	else,
		formants = [];
	end;
	k = strmatch('F0',names,'exact');
	if ~isempty(k),
		f0 = data(k).SIGNAL;
		data(k) = [];
	else,
		f0 = [];
	end;
	if length(data) > 1, 
		data = 1;		% flag mavis data available but don't clone it (avoid memory whack)
	else,
		data = 0;
	end;
elseif isa(varargin{1}, 'audio'),		% audio object
	action = 'INIT';
	signal = varargin{1};
	sRate = signal.SRATE;
	signal = double(signal);
	labels = [];
	data = 0;
	formants = [];
	f0 = [];
elseif nargin>1 & all([isnumeric(varargin{1}) isnumeric(varargin{2})]),
	action = 'INIT';					% signal vector, srate
	signal = double(varargin{1}); 
	sRate = varargin{2};
	labels = [];
	data = 0;
	formants = [];
	f0 = [];
elseif iscellstr(varargin{1}),
	vList = varargin{1};
	if nargin > 1,
		args = varargin(2:end);
	else,
		args = [];
	end;
	args{end+1} = 'VLIST';
	args{end+1} = vList;
	melba(vList{1}, args{:});
	return;
elseif iscell(varargin{1}),
	action = 'INIT';
	sRate = varargin{1};
	signal = double(sRate{1});
	sRate = sRate{2};
	labels = [];
	data = 0;
	formants = [];
	f0 = [];
else,
	error('MELBA:  unrecognized data format');
end;


%-----------------------------------------------------------------------------
%	branch by action

switch action,

%-----------------------------------------------------------------------------
% ABORT:  force exit

	case 'ABORT',
		set(0,'ShowHiddenHandles', 'on');
		delete(findobj('Tag', 'MELBA'));
		set(0,'ShowHiddenHandles', 'off');


%-----------------------------------------------------------------------------
% ABOUT:  display help

	case 'ABOUT',
		s = {'MELBA  - Matlab Event Labelling By Acoustics';
			''
			['  ' vers]};
		helpwin(s, 'About MELBA');
		
		
%-----------------------------------------------------------------------------
% AUTO:  toggle auto update status

	case 'AUTO',
		state = get(gcbf, 'userdata');
		s = get(gcbo,'checked');
		state.AUTO = strcmp(s,'off');
		set(gcbf, 'userdata', state);
		if state.AUTO, s = 'on'; else, s = 'off'; end;
		set(state.AUTOMENU, 'checked', s);
		if state.AUTO, SetBounds(state); end;
		

%-----------------------------------------------------------------------------
% CFGSPEC:  configure spectra analysis

	case 'CFGSPEC',
		state = get(gcbf, 'userdata');
		cfg = struct('NUDGE', state.NUDGE, ...
						'WSIZE', state.WSIZE, ...
						'ORDER', state.ORDER, ...
						'FRAME', state.FRAME, ...
						'AVGW', state.AVGW, ...
						'OLAP', state.OLAP, ...
						'BWCLIP', state.BWCLIP, ...
						'PREEMP', state.PREEMP, ...
						'SOFF', state.SOFF, ...
						'SPECLIM', state.SPECLIM, ...
						'ANAL', state.ANAL, ...
						'F0THR', state.F0THR, ...
						'ISF', state.ISF);
		cfg = ConfigSpectra(cfg);
		if isempty(cfg), return; end;
		state.FRAME = cfg.FRAME;
		state.ORDER = cfg.ORDER;
		state.WSIZE = cfg.WSIZE;
		state.NUDGE = cfg.NUDGE;
		state.AVGW  = cfg.AVGW;
		state.OLAP  = cfg.OLAP;
		state.BWCLIP= cfg.BWCLIP;
		state.PREEMP= cfg.PREEMP;
		state.SOFF  = cfg.SOFF;
		state.F0THR = cfg.F0THR;
% RECOMPUTE F0
		if state.SOFF<=0, state.SOFF = 1; end;
		if state.SPECLIM ~= cfg.SPECLIM,
			specLim = cfg.SPECLIM;
			if specLim > state.SRATE/2, specLim = state.SRATE/2; end;
			state.SPECLIM  = specLim;
			set(state.SPECTRA, 'xlim', [1 specLim]);
		end;
		state.ANAL  = cfg.ANAL;
		state.ISF   = cfg.ISF;
		set(gcbf, 'userdata', state);
		SetCursor(state);
		SetBounds(state, 0);
		
		
%-----------------------------------------------------------------------------
% CLONE:  duplicate window for copy, print visibility

	case 'CLONE',
		state = get(gcbf, 'userdata');
		h = gcbf;
		ch = figure('colormap', get(h, 'colormap'), 'name', state.NAME);
		copyobj(flipud(findobj(h,'type','axes')), ch);
		set(findobj(ch,'type','patch'), 'edgeColor', [1 1 1], 'faceColor', 'none', 'eraseMode', 'normal');

		uicontrol(ch, ...								% head
			'style', 'text', ...
			'horizontalAlignment', 'left', ...
			'string', sprintf('Head:  %.1f', state.HEAD), ...
			'units', 'characters', ...
			'backgroundColor', get(ch, 'color'), ...
			'foregroundColor', [1 1 1], ...
			'position', [4 3.0 15 1]);
		uicontrol(ch, ...								% tail
			'style', 'text', ...
			'horizontalAlignment', 'left', ...
			'string', sprintf('Tail:  %.1f', state.TAIL), ...
			'units', 'characters', ...
			'backgroundColor', get(ch, 'color'), ...
			'foregroundColor', [1 1 1], ...
			'position', [4 1.0 15 1]);
		uicontrol(ch, ...								% cursor
			'style', 'text', ...
			'horizontalAlignment', 'right', ...
			'string', sprintf('Cursor:  %.1f', state.CURSOR), ...
			'units', 'characters', ...
			'backgroundColor', get(ch, 'color'), ...
			'foregroundColor', [1 1 1], ...
			'position', [18 3.0 15 1]);

		
%-----------------------------------------------------------------------------
% COG:  display spectral center-of-gravity measures

	case 'COG',
		state = get(gcbf, 'userdata');
		[L1, skew, kurt] = cog(state.SIGNAL, state.SRATE, state.CURSOR);	
		fprintf('Cursor @ %d (%g ms), \tL1: %g   skew: %g   kurt: %g\n', ...
				floor(state.CURSOR*state.SRATE/1000)+1, state.CURSOR, ...
				L1, skew, kurt);

		
%-----------------------------------------------------------------------------
% CONTRAST:  adjust spectrogram contrast

	case 'CONTRAST',
		state = get(gcbf, 'userdata');
		colormap(flipud(gray(256).^get(gcbo,'value')));
		ih = findobj(state.SPECGRAM, 'type', 'image');
		if ~isempty(ih), set(ih,'cdata', get(ih, 'cdata')); end;

		
%-----------------------------------------------------------------------------
% CURCHG:  manual cursor entry

	case 'CURCHG',
		if nargin > 2, fh = varargin{3}; else, fh = gcbf; end;
		state = get(fh, 'userdata');
		if nargin > 1,
			c = varargin{2};
		else,
			c = str2num(get(state.CURSORF, 'string'));
		end;
		if c < 0, c = 0; elseif c > state.DUR, c = state.DUR; end;
		state.CURSOR = c;
		set(fh, 'userdata', state);
		SetCursor(state);
		
			
%-----------------------------------------------------------------------------
% DOWN:  mouse down

	case 'DOWN',
		state = get(gcbf, 'userdata');
		curPt = get(gca, 'CurrentPoint');
		mod = get(gcbf, 'selectionType');
		x = curPt(1,1);
		y = curPt(1,2);

		switch varargin{2},
		
% click in framing panel is bounds adjust
			case 'FRAME',
				if strcmp(mod, 'open'),
					state.HEAD = 0;					% double click sets full selection
					state.TAIL = state.DUR;
					set(gcbf, 'userData', state);
					SetBounds(state);
					return;
				end;
				slop = state.DUR * .008;	% grabbing tolerance
				if state.HEAD>x-slop & state.HEAD<x+slop,
					state.MOVEMODE = 'HEAD';		% move head
				elseif state.TAIL>x-slop & state.TAIL<x+slop,
					state.MOVEMODE = 'TAIL';		% move tail
				elseif x>state.HEAD & x<state.TAIL,						
					state.MOVEMODE = -x;	% move selection (save starting point)
				else,
					return;
				end;
				state.MOVED = 0;
				set(gcbf, 'userdata', state, ...
						'windowButtonMotionFcn', 'melba MOVESEL', ...
						'windowButtonUpFcn', 'melba UP');

% click in temporal panel sets cursor/label
			case 'CURSOR',
				if strcmp(mod, 'open'), return; end;	% ignore double click
%				set(state.CURSORL, 'xData', [x x]);		% update cursor position
				state.CURSOR = x;
				SetCursor(state);
				switch mod,
					case 'normal',	% (left button/unmodified click) fall thru
						state.MOVEMODE = 'CURSOR';		% cursor update
					case 'open', 	% (double-click)
						return;
					otherwise,		% (right button/modified click)
						if strcmp(mod, 'extend'),
							state.MOVEMODE = 'LBL_SILENT';	% shift:  silent labelling
						else,
							state.MOVEMODE = 'LBL_NOISY';	% ctl/alt: annotated labelling
						end;
						if ~isempty(state.LPROC),	% user proc labelling
							set(gcbf, 'userdata', state);	% update mode
							lpState = feval(state.LPROC, state.LPSTATE, 'DOWN', state.CURSOR);
							if ~isempty(lpState),
								state = get(gcbf, 'userData');
								state.LPSTATE = lpState;
								set(gcbf, 'userdata', state);	% allow state update
							end;
							return;
						end;
				end;
				xy = get(state.SPECGRAM, 'currentPoint');
				xy = round(xy(1,2));
				if xy>0 & xy <state.SRATE/2,	% click within spectrogram
					set(state.HEADFL, 'string', 'Hz');
					set(state.HEADF, 'string', [' ',int2str(xy)]);
					line([xy xy], get(state.SPECTRA, 'ylim'), ...
							'parent', state.SPECTRA, 'tag', 'CURSOR', ...
							'color', 'c', 'eraseMode','xor');
				end;
				set(gcbf, 'userdata', state, ...
					'windowButtonMotionFcn', 'melba MOVECUR', ...
					'windowButtonUpFcn', 'melba UP', ...
					'pointer', 'crosshair');
					
% click in spectrum panel reports location
			case 'SPECTRA',
				if ~strcmp(mod, 'normal'),		% modified click - plot spectrum in external window
					PlotSpectra(state);
					return;
				end;
				set(state.HEADFL, 'string', 'Hz');
				set(state.TAILFL, 'string', 'dB');
				set(state.HEADF, 'string', [' ',round(x)]);
				set(state.TAILF, 'string', sprintf(' %.1f',y));
				state.MOVEMODE = 'SPECTRA';
				set(gcbf, 'userData', state, ...
						'windowButtonMotionFcn', 'melba MOVESPEC', ...
						'windowButtonUpFcn', 'melba UP', ...
						'pointer', 'crosshair');
			
		end;


%-----------------------------------------------------------------------------
% FORMANTS:  list formant peaks

	case 'FORMANTS',
		state = get(gcbf, 'userdata');

% compute F0
		c = floor(state.CURSOR*state.SRATE/1000)+1;			% msecs->samples
		ns = round(40/1000*state.SRATE);					% frame (40 msecs->samples)
		F0 = zeros(1,3);
		v = F0; 
		for fi = 1 : 3,										% compute for 3 buffers centered on cursor
			h = c - round(ns/2)*(3-fi);
			if h < 1, h = 1; end;
			t = h + ns - 1;
			if t > length(state.SIGNAL),
				t = length(state.SIGNAL);
				h = t - ns + 1;
			end;
			[F0(fi),v,R] = ComputeF01(state.SIGNAL(h:t), state.SRATE, state.ISF);
		end;
		if length(find(F0)) < 2,			% if any two buffers 0
			F0 = NaN;							% bogus
		elseif std(F0(find(F0))) > 15,		% if std dev > 15 Hz
			F0 = F0(find(F0));
			if min(F0) < .67*max(F0),			% check for pitch doubling
				F0 = min(F0);
			else,
				F0 = NaN;
			end;
		elseif F0(2),						% center result available
			F0 = F0(2);							% cursor-centered result
		else,								% otherwise
			F0 = mean(F0(find(F0)));			% mean of non-zero results
		end;
		

% compute zero crossings, RMS for WSIZE centered on cursor
		ht = floor((state.CURSOR+[-state.WSIZE state.WSIZE]*.5)*state.SRATE/1000)+1;	% msecs -> samps
		if ht(1)<1, ht(1) = 1; end;
		if ht(2)>length(state.SIGNAL), ht(2) = length(state.SIGNAL); end;
		s = state.SIGNAL(ht(1):ht(2));
		zc = sum(abs(diff(s>=0)));
		rms = sqrt(mean(s.^2));

% compute formants
		[p,f,formants,bws,amps] = ComputeSpectra(state);	
		fprintf('\n\tCursor @ %g ms\nWindow %.1f ms:  %d zero crossings, RMS = %.1f, F0 = %d Hz\nFormants (Bandwidths, Amplitudes):\n  [', ...
				state.CURSOR, state.WSIZE, zc, rms, F0);
		nf = min([length(formants) state.NFMTS]);
		for i = 1 : nf,
			fprintf(' %d (%d, %.1f) ', formants(i), bws(i), amps(i));
		end;
		fprintf(']\n');
		
% show canned values, if any
		if ~isempty(state.F0),
			k = round(c/length(state.SIGNAL) * length(state.F0));
			if k < 1, k = 1; elseif k > length(state.F0), k = length(state.F0); end;
			fprintf('Stored F0 == %.0f Hz\n', state.F0(k));
		end;
		if ~isempty(state.FORMANTS),
			lf = size(state.FORMANTS,1);
			k = round(c/length(state.SIGNAL) * lf);
			if k < 1, k = 1; elseif k > lf, k = lf; end;
			fprintf('Stored Formants:');
			fprintf('  %.0f', state.FORMANTS(k,1:nf));
			fprintf('\n');
		end;
		
% selection
		head = floor(state.HEAD*state.SRATE/1000)+1;	% msecs -> samps
		tail = floor(state.TAIL*state.SRATE/1000)+1;
		fprintf('Selection is %.1f : %.1f (%.1f) ms\n', ...
				state.HEAD, state.TAIL, state.TAIL-state.HEAD);

		
%-----------------------------------------------------------------------------
% GETCFG:  return current configuration

	case 'GETCFG',
		state = varargin{2};
		mOut = struct('FIGPOS', get(gcbf, 'position'), ...	% figure position
					'FRAME', state.FRAME, ...		% # FFT evaluation points
					'ORDER', state.ORDER, ...		% LPC order
					'WSIZE', state.WSIZE, ...		% LPC evaulation window (msecs)
					'NFMTS', state.NFMTS, ...		% # recorded formants
					'NUDGE', state.NUDGE, ...		% nudge length (msecs)	
					'AVGW', state.AVGW, ...			% averaging window (msecs)
					'OLAP', state.OLAP, ...			% averaging overlap (msecs)
					'ZOOMW', state.ZOOMW, ...		% zoomed wave
                    
                
WNAnalysis.m http://horwitzlab.googlecode.com/svn/ | MATLAB | 1351 lines
                    
56    querystr = ['Which noisetype? 1=gun (n=',num2str(sum(Lgunnoise)),') 2=cone (n=',num2str(sum(Lconenoise)),'): '];
                    
57    whichnoisetype = input(querystr);
                    
58end
                    
231plot(L);
                    
232[x,y] = ginput(2);
                    
233close;
                    
                
nex2stro.m http://horwitzlab.googlecode.com/svn/ | MATLAB | 482 lines
                    
13    %start the wait dialog and, initialize all the appropriate structures,
                    
14    %then open a .nex file if no input argument was given.
                    
15    waitdlg = waitbar(0, 'Opening a .nex file');
                    
                
DTgui.m http://horwitzlab.googlecode.com/svn/ | MATLAB | 1199 lines
                    
17uicontrol('style', 'text', 'string', 'Detection Files', 'units', 'normalize', 'position', [.4, .61, .2, .16], 'fontsize', 13, 'backgroundColor', get(gcf, 'color'));
                    
18cPan.dtTextHand = uicontrol('style', 'edit', 'string', 'input DT file', 'units', 'normalized', 'position', [.38, .42, .24, .18], 'backgroundColor', [1 1 1], 'fontsize', 12);
                    
19uicontrol('style', 'text', 'string', 'Grating Files', 'units', 'normalize', 'position', [.1, .76, .2, .16], 'fontsize', 13, 'backgroundColor', get(gcf, 'color'));
                    
19uicontrol('style', 'text', 'string', 'Grating Files', 'units', 'normalize', 'position', [.1, .76, .2, .16], 'fontsize', 13, 'backgroundColor', get(gcf, 'color'));
                    
20cPan.gtTextHand = uicontrol('style', 'edit', 'string', 'input GT file', 'units', 'normalized', 'max', 4, 'min', 1, 'position', [.08, .25, .24, .5], 'backgroundColor', [1 1 1], 'fontsize', 12);
                    
21cPan.applyHand = uicontrol('style', 'pushbutton', 'string', 'Apply', 'callback', {@analyzeData, cPan.figHand}, 'units', 'normalized', 'position', [.7, .63 .2, .2], 'fontsize', 11, 'interruptible', 'off', 'busyaction', 'cancel');
                    
29    function resetTextFields(h, ev)
                    
30        set(cPan.dtTextHand, 'string', 'input DT file')
                    
31        set(cPan.gtTextHand, 'string', 'input GT file')
                    
58    
                    
59    %open the appropriate files. Be nice and change the user input to all
                    
60    %caps in case they forgot.
                    
65    %setup the gratings GUI
                    
66    if ~strcmpi(GTfname, 'input GT file') && ~isempty(GTfname)
                    
67        %iterate over all the available GT files
                    
                
timeit.m http://horwitzlab.googlecode.com/svn/ | MATLAB | 1140 lines
                    
58
                    
59% Run the outer loop enough times to give a reasonable set of inputs to median.
                    
60num_outer_iterations = 11;
                    
                
derivest.m http://horwitzlab.googlecode.com/svn/ | MATLAB | 766 lines
                    
22%
                    
23% Arguments (input)
                    
24%  fun - function to differentiate. May be an inline function,
                    
36%        Fun is assumed to return a result of the same
                    
37%        shape as its input x0.
                    
38%
                    
41%
                    
42% Additional inputs must be in the form of property/value pairs.
                    
43%  Properties are character strings. They may be shortened
                    
                
GroupAna.m http://princeton-mvpa-toolbox.googlecode.com/svn/trunk/ | MATLAB | 2216 lines
                    
55%fprintf('\n\t6. One covariate is currently allowed in the analysis, which should be in the format of one-column text file.\n');
                    
56%fprintf('\t   The column length has to be the same as the total number of input files.\n');
                    
57
                    
61while flg == 0,
                    
62   data_type = input('\nGroups analysis for volume or surface data (0 - volume; 1 - surface)? ');
                    
63	if (data_type ~= 0 & data_type ~= 1),
                    
151%while flg == 0,
                    
152%   slices = input('How many slices along the Z axis (run 3dinfo on one of the input files to find out)? ');
                    
153%	if (isnumeric(slices) == 0 | isempty(slices)),
                    
176		fprintf('\n\t and 4-way ANOVA type 5: CXD(AXB).')
                    
177	   if (input('\n\nDoes your unbalanced design belong to either of the above types? (1 - Yes; 0 - No) ') == 0);
                    
178		   while (1); fprintf(2,'Halted: Ctrl+c to exit'); pause; end
                    
300	   fprintf(2, '\nLabel for No. %i ', NF); 
                    
301	   FL(NF).expr = input('factor: ', 's');     % Label this unbalanced factor
                    
302 	
                    
                
ps_control.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 1699 lines
                    
9%      PS_CONTROL('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in PS_CONTROL.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to ps_control_OpeningFcn via varargin.
                    
17%
                    
                
nmCavCal.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 638 lines
                    
121    if nargin~=3 || ~ischar(varargin{1}) || (~isequal(varargin{2},'x') && ~isequal(varargin{2},'y') && ~isequal(varargin{2},'xp') && ~isequal(varargin{2},'yp'))
                    
122      error('Incorrect input arguments for CalibBpm')
                    
123    end
                    
                
bpmcal.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 895 lines
                    
9%      BPMCAL('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in BPMCAL.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to bpmcal_OpeningFcn via varargin.
                    
17%
                    
                
bba.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 1456 lines
                    
9%      BBA('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in BBA.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to bba_OpeningFcn via varargin.
                    
17%
                    
                
extDispCalc.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 480 lines
                    
9%      EXTDISPCALC('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in EXTDISPCALC.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to extDispCalc_OpeningFcn via varargin.
                    
17%
                    
                
magStandardise.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 519 lines
                    
9%      MAGSTANDARDISE('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in MAGSTANDARDISE.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to magStandardise_OpeningFcn via varargin.
                    
17%
                    
                
sockrw.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 505 lines
                    
131      input_stream=FL.(srvsel).servSocket.getInputStream;
                    
132      FL.(srvsel).servSocket_input_stream=DataInputStream(input_stream);
                    
133      FL.(srvsel).user1.remotehost=char(FL.(srvsel).servSocket.getInetAddress);
                    
141            while FL.(srvsel).servSocket_input_stream.available
                    
142              comSocket=[comSocket char(FL.(srvsel).servSocket_input_stream.readByte)];
                    
143            end % while bytes available
                    
161      input_stream=FL.(srvsel).(userID).socket.getInputStream;
                    
162      FL.(srvsel).(userID).socket_input_stream=DataInputStream(input_stream);
                    
163      FL.(srvsel).(userID).socketIn=BufferedReader(InputStreamReader(input_stream));
                    
188            output=[]; firstcall=true;
                    
189            while FL.(srv).(userID).socket_input_stream.available
                    
190              if firstcall
                    
266            rstr=[]; % havepaused=false;
                    
267            while FL.(stype).(userID).socket_input_stream.available
                    
268              if strcmpi(arg1,'cas')
                    
                
FlBeamModelGUI.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 714 lines
                    
9%      FLBEAMMODELGUI('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in FLBEAMMODELGUI.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to FlBeamModelGUI_OpeningFcn via varargin.
                    
17%
                    
                
FAS_main.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 456 lines
                    
9%      FAS_MAIN('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in FAS_MAIN.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to FAS_main_OpeningFcn via varargin.
                    
17%
                    
                
FlFB_settingsGUI.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 449 lines
                    
9%      FLFB_SETTINGSGUI('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in FLFB_SETTINGSGUI.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to FlFB_settingsGUI_OpeningFcn via varargin.
                    
17%
                    
                
FlFB_spectralAnalGUI.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 880 lines
                    
9%      FLFB_SPECTRALANALGUI('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in FLFB_SPECTRALANALGUI.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to FlFB_spectralAnalGUI_OpeningFcn via varargin.
                    
17%
                    
                
SimSettings_dynamicErr.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 789 lines
                    
9%      SIMSETTINGS_DYNAMICERR('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in SIMSETTINGS_DYNAMICERR.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to SimSettings_dynamicErr_OpeningFcn via varargin.
                    
17%
                    
                
FlLoadExternal.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 789 lines
                    
8%
                    
9% Input Arguments
                    
10%
                    
27if (nargin<3)
                    
28  warning('FlLoadExternal requires 3 input arguments')
                    
29  return
                    
                
componentAvailabilityGui.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 470 lines
                    
9%      COMPONENTAVAILABILITYGUI('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in COMPONENTAVAILABILITYGUI.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to componentAvailabilityGui_OpeningFcn via varargin.
                    
17%
                    
                
detailsGui.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 438 lines
                    
9%      DETAILSGUI('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in DETAILSGUI.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to detailsGui_OpeningFcn via varargin.
                    
17%
                    
                
apertures.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 500 lines
                    
58    if nargin~=2
                    
59      error('need 2 input arguments')
                    
60    end
                    
                
aperturesGui.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 1348 lines
                    
9%      APERTURESGUI('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in APERTURESGUI.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to aperturesGui_OpeningFcn via varargin.
                    
17%
                    
                
trajectory_correction.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 1800 lines
                    
9%      trajectory_correction('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in trajectory_correction.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to trajectory_correction_OpeningFcn via varargin.
                    
17%
                    
                
manualEXT.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 481 lines
                    
9%      MANUALEXT('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in MANUALEXT.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to manualEXT_OpeningFcn via varargin.
                    
17%
                    
                
OCEXT.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 540 lines
                    
9%      OCEXT('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in OCEXT.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to OCEXT_OpeningFcn via varargin.
                    
17%
                    
                
OCFF.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 476 lines
                    
9%      OCFF('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in OCFF.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to OCFF_OpeningFcn via varargin.
                    
17%
                    
                
multiKnobs_edit.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 631 lines
                    
9%      MULTIKNOBS_EDIT('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in MULTIKNOBS_EDIT.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to multiKnobs_edit_OpeningFcn via varargin.
                    
17%
                    
191if isnan(str2double(get(hObject,'String')))
                    
192  errordlg('Bad input for Type Index','Multiknob edit error')
                    
193  set(hObject,'String',[])
                    
                
multiKnobs.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 623 lines
                    
9%      MULTIKNOBS('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in MULTIKNOBS.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to multiKnobs_OpeningFcn via varargin.
                    
17%
                    
                
multiKnobs_table.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 410 lines
                    
9%      MULTIKNOBS_TABLE('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in MULTIKNOBS_TABLE.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to multiKnobs_table_OpeningFcn via varargin.
                    
17%
                    
179if isnan(str2double(get(hObject,'String')))
                    
180  errordlg('Bad input','Knob Value Error')
                    
181  set(hObject,'String','')
                    
205if isnan(str2double(get(hObject,'String')))
                    
206  errordlg('Bad input','Lookup Value Error')
                    
207  set(hObject,'String','')
                    
230if isnan(kVal) || isnan(lVal)
                    
231  errordlg('Bad knob value and/or lookup value inputs','Add row error')
                    
232  return
                    
                
bpmgui.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 471 lines
                    
9%      BPMGUI('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in BPMGUI.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to bpmgui_OpeningFcn via varargin.
                    
17%
                    
                
EXT_Bump.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 594 lines
                    
9%      EXT_BUMP('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in EXT_BUMP.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to EXT_Bump_OpeningFcn via varargin.
                    
17%
                    
355% handles    structure with handles and user data (see GUIDATA)
                    
356% Get user input from GUI
                    
357
                    
                
wiremeasGui.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 656 lines
                    
9%      WIREMEASGUI('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in WIREMEASGUI.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to wiremeasGui_OpeningFcn via varargin.
                    
17%
                    
                
extDispersion_bpmSel.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 690 lines
                    
9%      EXTDISPERSION_BPMSEL('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in EXTDISPERSION_BPMSEL.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to extDispersion_bpmSel_OpeningFcn via varargin.
                    
17%
                    
                
reference_voltages.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 821 lines
                    
9%      REFERENCE_VOLTAGES('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in REFERENCE_VOLTAGES.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to reference_voltages_OpeningFcn via varargin.
                    
17%
                    
96    set(hObject, 'String', 0);
                    
97    errordlg('Input must be a number','Error');
                    
98end
                    
126    set(hObject, 'String', 0);
                    
127    errordlg('Input must be a number','Error');
                    
128end
                    
156    set(hObject, 'String', 0);
                    
157    errordlg('Input must be a number','Error');
                    
158end
                    
                
lattice_check.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 1622 lines
                    
10%      local
                    
11%      function named CALLBACK in LATTICE_CHECK.M with the given input arguments.
                    
12%
                    
16%      unrecognized property name or invalid value makes property application
                    
17%      stop.  All inputs are passed to lattice_check_OpeningFcn via varargin.
                    
18%
                    
209
                    
210% Get the list of correctors from the input box
                    
211corlist = get(handles.maglistbox,'String');
                    
                
IP_knob.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 1839 lines
                    
9%      IP_KNOB('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in IP_KNOB.M with the given input arguments.edit55
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to IP_knob_OpeningFcn via varargin.
                    
17%
                    
                
extCoupling.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 572 lines
                    
9%      EXTCOUPLING('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in EXTCOUPLING.M with the given input arguments.
                    
11%
                    
16%      unrecognized property name or invalid value makes property application
                    
17%      stop.  All inputs are passed to extCoupling_OpeningFcn via varargin.
                    
18%
                    
                
bumpgui.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 808 lines
                    
12
                    
13% Check the number of input arguments -- should be 0 or 4
                    
14if nargin==0 % GUI mode, auto=true
                    
18else
                    
19  error('Incorrect inputs to bumpgui')
                    
20end
                    
21
                    
22% If in CLI mode, then check the inputs
                    
23if ~auto
                    
24  if ~(plane==1 || plane==2 || plane==3 || plane==4)
                    
25    error('First input to bumpgui must be 1, 2, 3, or 4')
                    
26  end
                    
27  if ~(type==3 || type==4)
                    
28    error('Second input to bumpgui must be 3 or 4')
                    
29  end
                    
                
cal_settings.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 602 lines
                    
9%      CAL_SETTINGS('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in CAL_SETTINGS.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to cal_settings_OpeningFcn via varargin.
                    
17%
                    
93    set(hObject, 'String', 0);
                    
94    errordlg('Input must be a number','Error');
                    
95end
                    
111    set(hObject, 'String', 0);
                    
112    errordlg('Input must be a number','Error');
                    
113end
                    
129    set(hObject, 'String', 0);
                    
130    errordlg('Input must be a number','Error');
                    
131end
                    
                
MonmerGUI.m http://du-chem.googlecode.com/svn/trunk/ | MATLAB | 1617 lines
                    
9%      MONMERGUI('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in MONMERGUI.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to MonmerGUI_OpeningFcn via varargin.
                    
17%
                    
                
arduino.m https://code.google.com/p/arduinolab/ | MATLAB | 1457 lines
                    
148                            a.digitalWrite(i,0);
                    
149                            a.pinMode(i,'input');
                    
150                        end
                    
207            % The first argument, pin, is the number of the digital pin (2 to 19).
                    
208            % The second argument, str, is a string that can be 'input' or 'output',
                    
209            % Called with one argument, as a.pin(pin) it returns the mode of
                    
217            % a.pinMode(11,'output') % sets digital pin #11 as output
                    
218            % a.pinMode(10,'input')  % sets digital pin #10 as input
                    
219            % val=a.pinMode(10);     % returns the status of digital pin #10
                    
280                
                    
281                % store 0 for input and 1 for output
                    
282                a.pins(pin)=val;
                    
286                
                    
287                mode={'UNASSIGNED','set as INPUT','set as OUTPUT'};
                    
288                disp(['Digital Pin ' num2str(pin) ' is currently ' mode{2+a.pins(pin)}]);
                    
                
adapthisteq3d.m http://dirart.googlecode.com/svn/trunk/ | MATLAB | 708 lines
                    
66%     calculated for each of these regions individually. The optimal number of
                    
67%     tiles depends on the type of the input image, and it is best determined
                    
68%     through experimentation.
                    
78%     the basis for creating the contrast transform function. The distribution
                    
79%     that should be used depends on the type of the input image.
                    
80%     For example, underwater imagery appears to look more natural when the
                    
128%
                    
129%  1. Obtain all the inputs: 
                    
130%    * image
                    
135%    * other miscellaneous options
                    
136%  2. Pre-process the inputs:  
                    
137%    * determine real clip limit from the normalized value
                    
155[I, selectedRange, fullRange, numTiles, dimTile, clipLimit, numBins, ...
                    
156 noPadRect, distribution, alpha, int16ClassChange] = parseInputs(varargin{:});
                    
157
                    
                
som_norm_variable.m http://research-code-base-animesh.googlecode.com/svn/trunk/ | MATLAB | 534 lines
                    
11%
                    
12%  Input and output arguments: 
                    
13%   x         (vector) a set of values of a scalar variable for
                    
149% 
                    
150% INPUT ARGUMENTS
                    
151%
                    
239
                    
240error(nargchk(3, 3, nargin));  % check no. of input arguments is correct
                    
241
                    
                
mds.m http://research-code-base-animesh.googlecode.com/svn/trunk/ | MATLAB | 1068 lines
                    
5% 
                    
6% INPUT
                    
7%   D       Square (M x M) dissimilarity matrix
                    
410% 
                    
411% INPUT
                    
412%   OPT_GIVEN Parameters for the MDS mapping, described below (default: [])
                    
                
fsb_functional_map.m https://code.google.com/p/fmri-sandbox/ | MATLAB | 920 lines
                    
7%
                    
8% INPUT:
                    
9% idat: 3D image data
                    
9% idat: 3D image data
                    
10% inparg: input argument struct with fields
                    
11% inparg.newmap: Should a new figure be drawn (1)
                    
                
DatapixxAudioKey.m http://psychtoolbox-3.googlecode.com/svn/beta/Psychtoolbox/ | MATLAB | 520 lines
                    
15%
                    
16% DatapixxAudioKey('Open' [, sampleRate][, lrMode][, inputJack][, inputGain]);
                    
17% - Open audio system for recording. This will stop any running audio
                    
22% Optionally select 'inputJack' as audio input (1=Microphone, 2=Line-In)
                    
23% and 'inputGain' as input amplifier gain. If no 'inputJack' is specified
                    
24% and no input is preselected, 'inputJack' will default to microphone
                    
24% and no input is preselected, 'inputJack' will default to microphone
                    
25% input.
                    
26%  
                    
181
                    
182        % If no input set at all, default to microphone input:
                    
183        if inputjack == 0
                    
194
                    
195    % Assign audio input source and input gain:
                    
196    Datapixx('SetMicrophoneSource', inputjack, inputgain);
                    
                
ncep_gencdl.m http://m--pack.googlecode.com/svn/trunk/ | MATLAB | 339 lines
                    
10%
                    
11%   Inputs:
                    
12%      TYPE    Type of forcing, currently can be:
                    
137end
                    
138% apply input description:
                    
139info_file.description = [info_file.description(1:end-3),' ',desc,'" ;'];
                    
                
presto_install.m http://m--pack.googlecode.com/svn/trunk/ | MATLAB | 1 lines
                    
1% Installer: "presto_install.m"
% Created: 31-May-2002 09:37:55.

function bund_driver

% bund_driver -- Driver for "bund" bundles.
%  bund_driver (no arguments) contains Matlab commands
%   to inflate the instructions and files that are
%   encoded into the "bund_data" function of this package.
 
% Copyright (C) 2001 Dr. Charles R. Denham, ZYDECO.
%  All Rights Reserved.
%   Disclosure without explicit written consent from the
%    copyright owner does not constitute publication.
 
% Version of 14-Jun-2001 10:54:16.
% Updated    03-Aug-2001 13:43:17.

help(mfilename)

BINARY_TAG = '?';

CR = char(13);
LF = char(10);

comp = upper(computer);
if any(findstr(comp, 'PCWIN'))   % Windows.
	NL = [CR LF];
elseif any(findstr(comp, 'MAC2'))   % Macintosh.
	NL = CR;
else   % Unix.
	NL = LF;
end

c = zeros(1, 256);
c(abs('0'):abs('9')) = 0:9;
c(abs('a'):abs('f')) = 10:15;

disp([' '])
disp([' ## This installer is ready to expand its contents,'])
disp([' ## starting in the present directory: "' pwd '"'])
disp([' ## To abort, execute an interruption now.'])
disp([' ## Otherwise, to continue, press any key.'])
disp([' '])

try
	pause
catch
	disp([' ## Installation interrupted.'])
	disp([' '])
	return
end

tic

w = which(mfilename);

fin = fopen(w, 'r');
if fin < 0, return, end

found = ~~0;
while ~found
	s = fgetl(fin);
	if isequal(s, -1)
		fclose(fin);
		return
	end
	s = strrep(s, LF, '');  % Not necessary?
	s = strrep(s, CR, '');  % Not necessary?
	if isequal(s, 'function bund_data')
		found = ~~1;
	end
end

fout = -1;

done = ~~0;
while ~done
	s = fgetl(fin);
	if isequal(s, -1)
		fclose(fin);
		return
	end
	if length(s) > 0
		if s(1) ~= '%'
			f = findstr(s, 'bund_setdir');
			if any(f)
				theDir = eval(strrep(s, 'bund_setdir', ''));
				status = mkdir(theDir);
				switch status
				case 1
					disp([' ## Directory created: "' theDir '"'])
				case 2
					disp([' ## Directory exists: "' theDir '"'])
				otherwise
					error([' ## Error while making new directory.'])
				end
				
				try
					cd(theDir)
				catch
					error([' ## Unable to go to directory: "' theDir '"'])
				end
			else
				try
					eval(s);
				catch
					error([' ## Unable to evaluate: "' s '"'])
				end
			end
		elseif length(s) > 1 & s(2) == BINARY_TAG
			hx = double(s(3:end));   % Assume hex data.
			bin = 16*c(hx(1:2:end)) + c(hx(2:2:end));
			fwrite(fout, bin, 'uchar');
		else
			fprintf(fout, '%s', s(2:end));
			fprintf(fout, NL);
		end
	end
end

fclose(fin);

disp([' ## Elapsed time: ' num2str(fix(10*toc)/10) ' s.'])

function bund_data
bund_setdir('presto')
bund_setdir('@presto')

disp(' ## Installing: "detach.m" (text)')
fout = fopen('detach.m', 'w');
%function theResult = detach(self)
%
%% presto/detach -- Remove "presto" object from handle.
%%  detach(self) removes self, a "presto" object, from
%%   its associated handle.
% 
%% Copyright (C) 1999 Dr. Charles R. Denham, ZYDECO.
%%  All Rights Reserved.
%%   Disclosure without explicit written consent from the
%%    copyright owner does not constitute publication.
% 
%% Version of 01-Nov-1999 10:45:28.
%% Updated    01-Nov-1999 10:45:28.
%
%if nargout > 0, theResult = presto(self); end
%if nargin < 1, help(mfilename), return, end
%
%set(handle(self), 'UserData', self.UserData)
fclose(fout);

disp(' ## Installing: "disp.m" (text)')
fout = fopen('disp.m', 'w');
%function theResult = disp(self, verboseFlag)
%
%% presto/display -- Display "presto" object.
%%  display(self, verboseFlag) displays the contents
%%   of self, a "presto" object.
% 
%% Copyright (C) 1999 Dr. Charles R. Denham, ZYDECO.
%%  All Rights Reserved.
%%   Disclosure without explicit written consent from the
%%    copyright owner does not constitute publication.
% 
%% Version of 28-Oct-1999 02:51:45.
%% Updated    28-Oct-1999 02:51:45.
%
%if nargin < 1, help(mfilename), return, end
%if nargin < 2, verboseFlag = 0; end
%
%disp(struct(self))
%
%if any(verboseFlag)
%	disp(self.itsData)
%end
fclose(fout);

disp(' ## Installing: "display.m" (text)')
fout = fopen('display.m', 'w');
%function theResult = display(self, verboseFlag)
%
%% presto/display -- Display "presto" object.
%%  display(self, verboseFlag) displays the contents
%%   of self, a "presto" object.
% 
%% Copyright (C) 1999 Dr. Charles R. Denham, ZYDECO.
%%  All Rights Reserved.
%%   Disclosure without explicit written consent from the
%%    copyright owner does not constitute publication.
% 
%% Version of 28-Oct-1999 02:51:45.
%% Updated    28-Oct-1999 02:51:45.
%
%if nargin < 1, help(mfilename), return, end
%if nargin < 2, verboseFlag = 0; end
%
%disp(' ')
%disp([inputname(1) ' ='])
%disp(' ')
%disp(self, verboseFlag)
fclose(fout);

disp(' ## Installing: "doabout.m" (text)')
fout = fopen('doabout.m', 'w');
%function doabout(self)
%
%%    The "presto" class provides a framework for
%% processing interactive graphical events.  It
%% features "dot" syntax for the setting/getting
%% of graphical and user-defined properties.  All
%% events are trapped by calls to "event", whose
%% sole argument is the name of Matlab callback
%% (e.g. "ButtonDownFcn").  Use "menu" to add
%% menu items, "control" to add controls, and
%% "enable" to automatically enable the relevant
%% callbacks.  The file "presto_test.m" gives a
%% demonstration.
%%    The "presto" class should be super-classed,
%% and the "event" method should be overloaded.
% 
%% Copyright (C) 1999 Dr. Charles R. Denham, ZYDECO.
%%  All Rights Reserved.
%%   Disclosure without explicit written consent from the
%%    copyright owner does not constitute publication.
% 
%% Version of 01-Nov-1999 13:53:56.
%% Updated    04-Nov-1999 15:56:44.
%
%helpdlg(help(mfilename), 'About Presto')
fclose(fout);

disp(' ## Installing: "doclear.m" (text)')
fout = fopen('doclear.m', 'w');
%function theResult = doclear(self, varargin)
%
%% presto/doclear -- Stub for "clear" event.
%%  doclear(self) returns self.
% 
%% Copyright (C) 1999 Dr. Charles R. Denham, ZYDECO.
%%  All Rights Reserved.
%%   Disclosure without explicit written consent from the
%%    copyright owner does not constitute publication.
% 
%% Version of 02-Nov-1999 23:18:31.
%% Updated    02-Nov-1999 23:18:31.
%
%if nargout > 0, theResult = []; end
%if nargin < 1, help(mfilename), return, end
%
%if nargout > 0
%	theResult = self;
%end
fclose(fout);

disp(' ## Installing: "docontrol.m" (text)')
fout = fopen('docontrol.m', 'w');
%function theResult = docontrol(self, theEvent, varargin)
%
%% presto/docontrol -- Handler for "presto" controls.
%%  docontrol(self, 'theEvent') handles 'theEvent' on
%%   behalf of self, a "presto" object.
% 
%% Copyright (C) 1999 Dr. Charles R. Denham, ZYDECO.
%%  All Rights Reserved.
%%   Disclosure without explicit written consent from the
%%    copyright owner does not constitute publication.
% 
%% Version of 05-Nov-1999 11:49:51.
%% Updated    05-Nov-1999 15:00:06.
%
%if nargout > 0, theResult = []; end
%if nargin < 1, help(mfilename), return, end
%
%switch theEvent
%case {'bottom', 'right', 'top', 'left'}
%	theValue = get(gcbo, 'Value');
%	theMin = get(gcbo, 'Min');
%	theMax = get(gcbo, 'Max');
%	disp([' ## ' theEvent ' ' mat2str([theMin theValue theMax])])
%otherwise
%	theValue = get(gcbo, 'Value');
%	disp([' ## ' theEvent mat2str(theValue)])
%end
%
%if nargout > 0
%	theResult = self;
%end
fclose(fout);

disp(' ## Installing: "docopy.m" (text)')
fout = fopen('docopy.m', 'w');
%function theResult = docopy(self, varargin)
%
%% presto/docopy -- Stub for "copy" event.
%%  docopy(self) returns self.
% 
%% Copyright (C) 1999 Dr. Charles R. Denham, ZYDECO.
%%  All Rights Reserved.
%%   Disclosure without explicit written consent from the
%%    copyright owner does not constitute publication.
% 
%% Version of 02-Nov-1999 23:18:31.
%% Updated    02-Nov-1999 23:18:31.
%
%if nargout > 0, theResult = []; end
%if nargin < 1, help(mfilename), return, end
%
%if nargout > 0
%	theResult = self;
%end
fclose(fout);

disp(' ## Installing: "docut.m" (text)')
fout = fopen('docut.m', 'w');
%function theResult = docut(self, varargin)
%
%% presto/docut -- Stub for "cut" event.
%%  docut(self) returns self.
% 
%% Copyright (C) 1999 Dr. Charles R. Denham, ZYDECO.
%%  All Rights Reserved.
%%   Disclosure without explicit written consent from the
%%    copyright owner does not constitute publication.
% 
%% Version of 02-Nov-1999 23:18:31.
%% Updated    02-Nov-1999 23:18:31.
%
%if nargout > 0, theResult = []; end
%if nargin < 1, help(mfilename), return, end
%
%if nargout > 0
%	theResult = self;
%end
fclose(fout);

disp(' ## Installing: "doedit.m" (text)')
fout = fopen('doedit.m', 'w');
%function theResult = doedit(self, varargin)
%
%% presto/doedit -- Stub for "edit" event.
%%  doedit(self) returns self.
% 
%% Copyright (C) 1999 Dr. Charles R. Denham, ZYDECO.
%%  All Rights Reserved.
%%   Disclosure without explicit written consent from the
%%    copyright owner does not constitute publication.
% 
%% Version of 02-Nov-1999 23:18:31.
%% Updated    02-Nov-1999 23:18:31.
%
%if nargout > 0, theResult = []; end
%if nargin < 1, help(mfilename), return, end
%
%if nargout > 0
%	theResult = self;
%end
fclose(fout);

disp(' ## Installing: "doevent.m" (text)')
fout = fopen('doevent.m', 'w');
%function theResult = doevent(self, theEvent, theMessage, varargin)
%
%% presto/doevent -- Call "presto" event handler.
%%  doevent(self, theEvent, theMessage) calls the appropriate
%%   event handler on behalf of self, a "presto" object.
% 
%% Copyright (C) 1999 Dr. Charles R. Denham, ZYDECO.
%%  All Rights Reserved.
%%   Disclosure without explicit written consent from the
%%    copyright owner does not constitute publication.
% 
%% Version of 05-Nov-1999 19:28:46.
%% Updated    08-Dec-1999 11:47:11.
%
%if nargout > 0, theResult = []; end
%if nargin < 1, help(mfilename), return, end
%if nargin < 2, theEvent = '(none)'; end
%if nargin < 3, theMessage = []; end
%
%result = [];
%
%switch get(gcbo, 'Type')
%case 'uimenu*'
%	result = domenu(self, theEvent, theMessage);
%case 'uicontrol*'
%	result = docontrol(self, theEvent, theMessage);
%otherwise
%	theHandler = handler(self, theEvent);
%	if ~isempty(theHandler)
%		result = builtin('feval', theHandler, self, theEvent, theMessage);
%	else
%		if isempty(theEvent), theEvent = '(none)'; end
%		theType = get(gcbo, 'Type');
%		disp([' ## ' datestr(now, 13) ' ' theEvent ' ' theType ' ' num2str(gcbo)])
%	end
%end
%
%if nargout > 0
%	theResult = self;
%end
fclose(fout);

disp(' ## Installing: "dofile.m" (text)')
fout = fopen('dofile.m', 'w');
%function theResult = dofile(self, varargin)
%
%% presto/dofile -- Stub for "file" event.
%%  dofile(self) returns self.
% 
%% Copyright (C) 1999 Dr. Charles R. Denham, ZYDECO.
%%  All Rights Reserved.
%%   Disclosure without explicit written consent from the
%%    copyright owner does not constitute publication.
% 
%% Version of 02-Nov-1999 23:18:31.
%% Updated    02-Nov-1999 23:18:31.
%
%if nargout > 0, theResult = []; end
%if nargin < 1, help(mfilename), return, end
%
%if nargout > 0
%	theResult = self;
%end
fclose(fout);

disp(' ## Installing: "domenu.m" (text)')
fout = fopen('domenu.m', 'w');
%function theResult = domenu(self, theEvent, varargin)
%
%% presto/domenu -- Handler for "presto" menus.
%%  domenu(self, 'theEvent') handles 'theEvent' on
%%   behalf of self, a "presto" object.
% 
%% Copyright (C) 1999 Dr. Charles R. Denham, ZYDECO.
%%  All Rights Reserved.
%%   Disclosure without explicit written consent from the
%%    copyright owner does not constitute publication.
% 
%% Version of 05-Nov-1999 11:49:51.
%% Updated    05-Nov-1999 15:00:06.
%
%if nargout > 0, theResult = []; end
%if nargin < 1, help(mfilename), return, end
%
%try
%	theHandler = handler(self, theEvent);
%	result = builtin('feval', theHandler, self, theEvent);
%catch
%	errormsg(self)
%end
%
%if nargout > 0
%	theResult = self;
%end
fclose(fout);

disp(' ## Installing: "domenubar.m" (text)')
fout = fopen('domenubar.m', 'w');
%function theResult = domenubar(self, varargin)
%
%% presto/domenubar -- Toggle the "presto" menubar.
%%  domenubar(self) toggles the menubar on behalf
%%   of self, a "presto" object.
% 
%% Copyright (C) 1999 Dr. Charles R. Denham, ZYDECO.
%%  All Rights Reserved.
%%   Disclosure without explicit written consent from the
%%    copyright owner does not constitute publication.
% 
%% Version of 04-Nov-1999 15:32:53.
%% Updated    04-Nov-1999 15:32:53.
%
%if nargout > 0, theResult = []; end
%if nargin < 1, help(mfilename), return, end
%
%theMenu = gcbo;
%
%theFigure = theMenu;
%while ~isequal(get(theFigure, 'Type'), 'figure')
%	theFigure = get(theFigure, 'Parent');
%end
%
%switch lower(get(theFigure, 'MenuBar'))
%case 'figure'
%	set(theFigure, 'MenuBar', 'none')
%	if any(theMenu), set(theMenu, 'Checked', 'off'); end
%case 'none'
%	set(theFigure, 'MenuBar', 'figure')
%	if any(theMenu), set(theMenu, 'Checked', 'on'); end
%end
%
%if nargout > 0, theResult = self; end
fclose(fout);

disp(' ## Installing: "domouse.m" (text)')
fout = fopen('domouse.m', 'w');
%function theResult = domouse(self, theEvent, varargin)
%
%% presto/domouse -- Process "presto" mouse events.
%%  domouse(self, 'theEvent') handles mouse events
%%   on behalf of self, a "presto" object.
% 
%% Copyright (C) 1999 Dr. Charles R. Denham, ZYDECO.
%%  All Rights Reserved.
%%   Disclosure without explicit written consent from the
%%    copyright owner does not constitute publication.
% 
%% Version of 05-Nov-1999 08:43:30.
%% Updated    05-Nov-1999 08:43:30.
%
%persistent OLD_NAME
%persistent OLD_NUMBER_TITLE
%persistent OLD_POINTER
%persistent SELECTION_TYPE
%
%switch theEvent
%
%% Mouse play.
%	
%case 'windowbuttonmotionfcn'
%	pt = get(gca, 'CurrentPoint');
%	pt = mean(pt);
%	NEW_NAME = ['[' num2str(pt(1)) ', ' num2str(pt(2)) ', ' num2str(pt(3)) ']'];
%	set(gcbf, 'Name', NEW_NAME)
%case 'windowbuttondownfcn'
%	pt = get(gca, 'CurrentPoint');
%	pt = mean(pt);
%	SELECTION_TYPE = get(gcbf, 'SelectionType');
%	NEW_NAME = ['[' num2str(pt(1)) ', ' num2str(pt(2)) ', ' num2str(pt(3)) ']'];
%	NEW_NUMBER_TITLE = 'off';
%	NEW_POINTER = 'circle';
%	OLD_NAME = get(gcbf, 'Name');
%	OLD_NUMBER_TITLE = get(gcbf, 'NumberTitle');
%	OLD_POINTER = get(gcbf, 'Pointer');
%	set(gcbf, ...
%			'WindowButtonDownFcn', '', ...
%			'WindowButtonMotionFcn', ['event WindowButtonMotionFcn'], ...
%			'WindowButtonUpFcn', ['event WindowButtonUpFcn'], ...
%			'Name', NEW_NAME, 'NumberTitle', NEW_NUMBER_TITLE, ...
%			'Pointer', NEW_POINTER);
%case 'windowbuttonupfcn'
%	set(gcbf, ...
%			'WindowButtonMotionFcn', '', ...
%			'WindowButtonUpFcn', '', ...
%			'WindowButtonDownFcn', ['event WindowButtonDownFcn'], ...
%			'Name', OLD_NAME, 'NumberTitle', OLD_NUMBER_TITLE, ...
%			'Pointer', OLD_POINTER);
%	OLD_NAME = [];
%	OLD_POINTER = [];
%end
%
%if nargout > 0
%	theResult = self;
%end
fclose(fout);

disp(' ## Installing: "donew.m" (text)')
fout = fopen('donew.m', 'w');
%function theResult = donew(self, varargin)
%
%% presto/donew -- Stub for "new" event.
%%  donew(self) returns self.
% 
%% Copyright (C) 1999 Dr
                    
                
test_nc_varput.m http://m--pack.googlecode.com/svn/trunk/ | MATLAB | 635 lines
                    
296input_data = [1:24];
                    
297input_data = reshape(input_data,6,4);
                    
298status = nc_varput ( ncfile, 'test_2D', input_data );
                    
320input_data = [1:20];
                    
321input_data = reshape(input_data,5,4);
                    
322status = nc_varput ( ncfile, 'test_2D', input_data, [0 0], [5 4] );
                    
344input_data = [1:20] - 5;
                    
345input_data = reshape(input_data,5,4);
                    
346status = nc_varput ( ncfile, 'test_2D', input_data, [1 0], [5 4] );
                    
368input_data = [1:6];
                    
369input_data = reshape(input_data,3,2);
                    
370status = nc_varput ( ncfile, 'test_2D', input_data, [0 0], [3 2], [2 2] );
                    
393input_data = [1:28];
                    
394input_data = reshape(input_data,7,4);
                    
395status = nc_varput ( ncfile, 'test_2D', input_data );
                    
                
test_get_var_bad_param_datatype.m http://m--pack.googlecode.com/svn/trunk/ | MATLAB | 2459 lines
                    
198input_data = [1:1:len_y*len_x];
                    
199input_data = reshape ( input_data, len_y, len_x );
                    
200
                    
200
                    
201status = mexnc ( 'put_var_double', ncid, varid, input_data' );
                    
202if ( status ~= 0 )
                    
                
test_put_var_bad_param_datatype.m http://m--pack.googlecode.com/svn/trunk/ | MATLAB | 2462 lines
                    
198input_data = [1:1:len_y*len_x];
                    
199input_data = reshape ( input_data, len_y, len_x );
                    
200
                    
214try
                    
215	[status] = mexnc ( 'put_var1_double', 'ncid', varid, [0 0], input_data' );
                    
216	error_condition = 1;
                    
230try
                    
231	[status] = mexnc ( 'put_var1_float', 'ncid', varid, [0 0], input_data' );
                    
232	error_condition = 1;
                    
326try
                    
327	[status] = mexnc ( 'put_var1_double', ncid, 'varid', [0 0], input_data' );
                    
328	error_condition = 1;
                    
358try
                    
359	[status] = mexnc ( 'put_var1_int', ncid, 'varid', [0 0], input_data' );
                    
360	error_condition = 1;
                    
                
kernel_density.m https://octave.svn.sourceforge.net/svnroot/octave | MATLAB | 117 lines
                    
21#
                    
22# inputs:
                    
23#	eval_points: PxK matrix of points at which to calculate the density
                    
                
myplay.m http://siento.googlecode.com/svn/trunk/ | MATLAB | 1684 lines
                    
63
                    
64% Note: The following input syntax has been disabled in the
                    
65%       CheckMovieFormat() function.
                    
125    hfig = CreateGUI;
                    
126    LoadMovie(hfig, A, fmt, inputname(1), fps);
                    
127    UpdateGUIControls(hfig);
                    
188function [A,fmt,fps,msg] = parse_inputs(varargin)
                    
189%PARSE_INPUTS Parse input arguments
                    
190%   Valid calling syntax:
                    
213elseif nargin==2
                    
214    % 2 inputs
                    
215    if ischar(varargin{2}),
                    
261
                    
262% Rules to disambiguate inputs when no format is specified
                    
263%
                    
                
ft_checkdata.m http://open-realtime-fmri.googlecode.com/svn/trunk/ | MATLAB | 1689 lines
                    
2
                    
3% FT_CHECKDATA checks the input data of the main FieldTrip functions, e.g. whether
                    
4% the type of data strucure corresponds with the required data. If neccessary
                    
4% the type of data strucure corresponds with the required data. If neccessary
                    
5% and possible, this function will adjust the data structure to the input
                    
6% requirements (e.g. change dimord, average over trials, convert inside from
                    
8%
                    
9% If the input data does NOT correspond to the requirements, this function
                    
10% is supposed to give a elaborate warning message and if applicable point
                    
15%
                    
16% Optional input arguments should be specified as key-value pairs and can include
                    
17%   feedback           = yes, no
                    
77
                    
78% get the optional input arguments
                    
79feedback      = keyval('feedback',      varargin); if isempty(feedback), feedback = 'no'; end
                    
                
avw_img_read.m http://open-realtime-fmri.googlecode.com/svn/trunk/ | MATLAB | 698 lines
                    
99if ~exist('fileprefix','var'),
                    
100  msg = sprintf('...no input fileprefix - see help avw_img_read\n\n');
                    
101  error(msg);
                    
                
avw_hdr_read.m http://open-realtime-fmri.googlecode.com/svn/trunk/ | MATLAB | 390 lines
                    
47if ~exist('fileprefix','var'),
                    
48    msg = sprintf('...no input fileprefix - see help avw_hdr_read\n\n');
                    
49    error(msg);
                    
                
ft_senslabel.m http://open-realtime-fmri.googlecode.com/svn/trunk/ | MATLAB | 2809 lines
                    
7%
                    
8% The input type can be any of the following
                    
9%   'biosemi64'
                    
65
                    
66% these are for remembering the type on subsequent calls with the same input arguments
                    
67persistent previous_argin previous_argout
                    
69if nargin<1
                    
70  % ensure that all input arguments are defined
                    
71  type = [];
                    
                
read_plexon_plx.m http://open-realtime-fmri.googlecode.com/svn/trunk/ | MATLAB | 410 lines
                    
12%
                    
13% Optional input arguments should be specified in key-value pairs
                    
14%   'header'           = structure with header information
                    
39
                    
40% parse the optional input arguments
                    
41hdr              = keyval('header', varargin);
                    
                
pathdef.m http://optimal-schedule-in-multi-task-learning.googlecode.com/svn/trunk/ | MATLAB | 325 lines
                    
2%PATHDEF Search path defaults.
                    
3%   PATHDEF returns a string that can be used as input to MATLABPATH
                    
4%   in order to set the path.
                    
241     matlabroot,'\toolbox\nnet\nnet\nnlearn;', ...
                    
242     matlabroot,'\toolbox\nnet\nnet\nnnetinput;', ...
                    
243     matlabroot,'\toolbox\nnet\nnet\nnnetwork;', ...
                    
                
memMapData.m http://isc-toolbox.googlecode.com/svn/trunk/ | MATLAB | 902 lines
                    
4%
                    
5% inputs:
                    
6% Params - analysis parameters from initParams.m
                    
145%
                    
146% Inputs:
                    
147% typeOfData - either 'subject','subjectfilt', 'maps' or
                    
                
ISCanalysis.m http://isc-toolbox.googlecode.com/svn/trunk/ | MATLAB | 723 lines
                    
9%      ISCANALYSIS('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in ISCANALYSIS.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to ISCanalysis_OpeningFcn via varargin.
                    
17%
                    
                
AnalisisRegresionSimple.m http://tesis-matlab-estanques.googlecode.com/svn/trunk/ | MATLAB | 739 lines
                    
9%      ANALISISREGRESIONSIMPLE('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in ANALISISREGRESIONSIMPLE.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to AnalisisRegresionSimple_OpeningFcn via varargin.
                    
17%
                    
                
AnalisisRegresion.m http://tesis-matlab-estanques.googlecode.com/svn/trunk/ | MATLAB | 813 lines
                    
9%      ANALISISREGRESION('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in ANALISISREGRESION.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to AnalisisRegresion_OpeningFcn via varargin.
                    
17%
                    
                
LocalDatabase.m http://stock-shock-source.googlecode.com/svn/trunk/ | MATLAB | 964 lines
                    
198            if isempty(symbolset)
                    
199               error('Input symbol set is empty'); 
                    
200            end
                    
                
estshhemm24.m http://sparse-mri-reconstruction.googlecode.com/svn/trunk/ | MATLAB | 729 lines
                    
83if any(size(prevl)~=slo | slo~=2*shi(1:2)) | any(size(prevh{end})~=shi) | (shi(3)~=6),
                    
84  error('Input matrices not correct sizes.');
                    
85end
                    
                
demprior.m http://pmtksupport.googlecode.com/svn/trunk/ | MATLAB | 407 lines
                    
370     'Observe how aw1 controls the horizontal length-scale of the', ...
                    
371     ' variation in the functions, ab1 controls the input range over', ...
                    
372     ' such variations occur, aw2 sets the vertical scale of the output', ...
                    
                
FlGui_test.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 408 lines
                    
9%      FLGUI_TEST('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in FLGUI_TEST.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to FlGui_test_OpeningFcn via varargin.
                    
17%
                    
                
laprint.m https://code.google.com/p/mtex/ | MATLAB | 2929 lines
                    
16%  As an alternative to the GUI you can call laprint from the command
                    
17%  line with various extra input arguments. These arguments are 
                    
18%  explained in the help window of the GUI, which can be also be 
                    
424    [LAPRINTHAN,LAPRINTOPT]=gethf(hf);
                    
425    answer = inputdlg({['Please enter the width (in centimeters) ',...
                    
426         'of the graphics in the LaTeX document (The height ',...
                    
                
ft_senstype.m http://open-realtime-fmri.googlecode.com/svn/trunk/ | MATLAB | 367 lines
                    
83
                    
84if iscell(input) && numel(input)<4 && ~all(cellfun(@ischar, input))
                    
85  % this might represent combined EEG, ECoG and/or MEG
                    
110isdata   = isa(input, 'struct') && isfield(input, 'hdr');
                    
111isheader = isa(input, 'struct') && isfield(input, 'label') && isfield(input, 'Fs');
                    
112isgrad   = isa(input, 'struct') && isfield(input, 'label') && isfield(input, 'pnt')  &&  isfield(input, 'ori');
                    
112isgrad   = isa(input, 'struct') && isfield(input, 'label') && isfield(input, 'pnt')  &&  isfield(input, 'ori');
                    
113iselec   = isa(input, 'struct') && isfield(input, 'label') && isfield(input, 'pnt')  && ~isfield(input, 'ori');
                    
114islabel  = isa(input, 'cell')   && ~isempty(input) && isa(input{1}, 'char');
                    
119  % the gradiometer definition is lost after megplanar+combineplanar
                    
120  isdata = isa(input, 'struct') && (isfield(input, 'grad') || isfield(input, 'elec') || isfield(input, 'label'));
                    
121end
                    
181
                    
182elseif issubfield(input, 'orig.FILE.Ext') && strcmp(input.orig.FILE.Ext, 'edf')
                    
183  % this is a complete header that was read from an EDF or EDF+ dataset
                    
                
zielfunktionen.m http://bohreroptimierung.googlecode.com/svn/trunk/ | MATLAB | 411 lines
                    
9%      ZIELFUNKTIONEN('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in ZIELFUNKTIONEN.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to zielfunktionen_OpeningFcn via varargin.
                    
17%
                    
                
quadtree.m http://bohreroptimierung.googlecode.com/svn/trunk/ | MATLAB | 702 lines
                    
6% aligned with the Cartesian XY axes. The long axis is aligned with Y. This
                    
7% ensures that the quadtree generated for a geometry input that has
                    
8% undergone arbitrary rotations in the XY plane is always the same.
                    
                
MakeAnsysSettings.m http://bohreroptimierung.googlecode.com/svn/trunk/ | MATLAB | 1958 lines
                    
9%      MAKEANSYSSETTINGS('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in MAKEANSYSSETTINGS.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to MakeAnsysSettings_OpeningFcn via varargin.
                    
17%
                    
                
write_pc6_mat.m http://acq3.googlecode.com/svn/trunk/ | MATLAB | 322 lines
                    
94% Trial hierarhcy information
                    
95fwrite(fid, pc6h.nADCNumChannels, 'int16'); % 120 (number of analog input channels sampled)
                    
96fwrite(fid, pc6h.fADCSampleInterval, 'float32'); % 122 (interval between multiplexed channels)
                    
                
initpc6header.m http://acq3.googlecode.com/svn/trunk/ | MATLAB | 228 lines
                    
46% Trial hierarhcy information
                    
47pc6h.nADCNumChannels=1;			% fread(fid,1,'short'); % 120 (number of analog input channels sampled)
                    
48pc6h.fADCSampleInterval=50;		% fread(fid,1,'float'); % 122 (interval between multiplexed channels)
                    
                
pov_tree.m http://treestoolbox.googlecode.com/svn/trunk/ | MATLAB | 697 lines
                    
8%
                    
9% Input
                    
10% -----
                    
                
get_ATF2_quads.m http://slac-lucretia.googlecode.com/svn/trunk/ | MATLAB | 460 lines
                    
12%
                    
13% INPUTS (opCode=1):
                    
14%
                    
20%
                    
21% INPUTS (opCode=2):
                    
22%
                    
60
                    
61% check input args
                    
62
                    
74  if (nargin<4)
                    
75    error('At least 4 input arguments required for opCode=1')
                    
76  end
                    
82  if (nargin<4)
                    
83    error('At least 4 input arguments required for opCode=2')
                    
84  end
                    
                
exportfig.m http://slac-lucretia.googlecode.com/svn/trunk/ | MATLAB | 501 lines
                    
92if (nargin < 2)

                    
93  error('Too few input arguments');

                    
94end

                    
108if (rem(length(paramPairs),2) ~= 0)

                    
109  error(['Invalid input syntax. Optional parameters and values' ...

                    
110	 ' must be in pairs.']);

                    
                
BeamlineViewer.m http://slac-lucretia.googlecode.com/svn/trunk/ | MATLAB | 1272 lines
                    
57% 
                    
58% Input Arguments:
                    
59%   hObject    handle to figure
                    
149%
                    
150% Input arguments:
                    
151%   hObject    handle to figure
                    
167%
                    
168% Input arguments:
                    
169%   hObject    handle to listbox1 (see GCBO)
                    
189%
                    
190% Input arguments:
                    
191%   hObject    handle to listbox1 (see GCBO)
                    
206%
                    
207% Input arguments:
                    
208%   hObject    handle to listbox2 (see GCBO)
                    
                
lobpcg.m http://blopex.googlecode.com/svn/trunk/ | MATLAB | 992 lines
                    
8% corresponding matrix of orthonormalized eigenvectors blockVectorX of the
                    
9% Hermitian (full or sparse) operator operatorA using input matrix
                    
10% blockVectorX as an initial guess, without preconditioning, somewhat
                    
44%
                    
45% Required input: 
                    
46%   blockVectorX - initial approximation to eigenvectors, full or sparse
                    
50%
                    
51% Optional function input:
                    
52%   operatorB - the second operator, if solving a generalized eigenproblem, 
                    
57%
                    
58% Optional constraints input: 
                    
59%   blockVectorY - a full or sparse n-by-sizeY matrix of constraints, where
                    
63%
                    
64% Optional scalar input parameters:
                    
65%   residualTolerance - tolerance, by default,
                    
                
SetCam.m http://matlabdb.googlecode.com/svn/trunk/ | MATLAB | 993 lines
                    
9%      SETCAM('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in SETCAM.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to SetCam_OpeningFcn via varargin.
                    
17%
                    
                
CircularHough_Grd.m http://matlabdb.googlecode.com/svn/trunk/ | MATLAB | 652 lines
                    
17% 
                    
18%%%%%%%% INPUT: (img, radrange, grdthres, fltr4LM_R, multirad, fltr4accum) 
                    
19% 
                    
29%               The algorithm is based on the gradient field of the 
                    
30%               input image. A thresholding on the gradient magnitude 
                    
31%               is performed before the voting process of the Circular 
                    
70%               transform. The accumulation array has the same dimension 
                    
71%               as the input image. 
                    
72% 
                    
200%%%%%%%%% INTERNAL PARAMETERS: 
                    
201%  The INPUT arguments are just part of the parameters that are used by 
                    
202%  the circle detection algorithm implemented here. Variables in the code 
                    
206%  occasions, the values of these INTERNAL PARAMETERS (parameters that 
                    
207%  are NOT exposed as input arguments) need to be fine-tuned to make 
                    
208%  the circle detection work as expected. 
                    
                
uipickfiles.m http://brainstream.googlecode.com/svn/trunk/ | MATLAB | 810 lines
                    
77
                    
78% Process inputs and set prop fields.
                    
79properties = fieldnames(prop);
                    
                
inifile.m http://brainstream.googlecode.com/svn/trunk/ | MATLAB | 903 lines
                    
35%
                    
36%   Notes on the keys cell array given as an input parameter:
                    
37%           Cell array of STRINGS; either 3, 4, or 5 columns. 
                    
183%        read/written keys is considered (with respect to the older version).
                    
184% - NEW: The format of the input parameters has changed. See above.
                    
185%
                    
206
                    
207% Checks the input arguments
                    
208if nargin == 0
                    
214elseif nargin < 2
                    
215    error('Not enough input arguments');
                    
216end
                    
222    if nargin < 3
                    
223        error('Not enough input arguments.');
                    
224    end
                    
                
fparser.m http://brainstream.googlecode.com/svn/trunk/ | MATLAB | 1290 lines
                    
10% OPT		option flags/arguments
                    
11% -c	:	input is a command-line
                    
12% -d	:	show results at run-time
                    
                
topoplot.m http://brainstream.googlecode.com/svn/trunk/ | MATLAB | 2256 lines
                    
13%        >>  [h grid_or_val plotrad_or_grid, xmesh, ymesh]= ...
                    
14%                           topoplot(datavector, chan_locs, 'Input1','Value1', ...);
                    
15% Required Inputs:
                    
19%                       Else, an EEG.chanlocs structure (>> help readlocs or >> topoplot example)
                    
20% Optional inputs:
                    
21%   'maplimits'       - 'absmax'   -> scale map colors to +/- the absolute-max (makes green 0); 
                    
190% Revision 1.276  2007/02/05 20:25:58  toby
                    
191% fixed bug when entering channels to plot instead of channel values as the first Input
                    
192%
                    
                
beamformer_dics.m http://brainstream.googlecode.com/svn/trunk/ | MATLAB | 486 lines
                    
10% where
                    
11%   dipin       is the input dipole model
                    
12%   grad        is the gradiometer definition
                    
18%
                    
19% The input dipole model consists of
                    
20%   dipin.pos   positions for dipole, e.g. regular grid
                    
139
                    
140% dics has the following sub-methods, which depend on the function input arguments
                    
141% power only, cortico-muscular coherence and cortico-cortical coherence
                    
151else
                    
152  error('invalid combination of input arguments for dics');
                    
153end
                    
                
ft_compute_leadfield.m http://brainstream.googlecode.com/svn/trunk/ | MATLAB | 498 lines
                    
10%   [lf] = ft_compute_leadfield(pos, sens, vol, ...)
                    
11% with input arguments
                    
12%   pos    position dipole (1x3 or Nx3)
                    
27%
                    
28% Additional input arguments can be specified as key-value pairs, supported
                    
29% optional arguments are
                    
38%
                    
39% Depending on the specific input arguments for the sensor and volume, this
                    
40% function will select the appropriate low-level EEG or MEG forward model.
                    
111
                    
112% get the optional input arguments
                    
113reducerank     = keyval('reducerank', varargin); if isempty(reducerank), reducerank = 'no'; end
                    
133elseif ~ismeg && ~iseeg
                    
134  error('the input does not look like EEG, nor like MEG');
                    
135
                    
                
readCTFds.m http://brainstream.googlecode.com/svn/trunk/ | MATLAB | 1004 lines
                    
45
                    
46%  Inputs : datasetname : Complete name of the data set directory.  Includes the complete
                    
47%                         path and the .ds extension.
                    
95if exist('datasetname')~=1
                    
96  fprintf('\nreadCTFds: No input datasetname specified.\n\n');
                    
97  return
                    
                
writeCTFds.m http://brainstream.googlecode.com/svn/trunk/ | MATLAB | 1712 lines
                    
43
                    
44%  Inputs : datasetname : Output dataset including path.  Extension '.ds' is optional.
                    
45%           ds : Structure produced by readCTFds.
                    
119
                    
120%  Check inputs
                    
121if nargin<3
                    
121if nargin<3
                    
122  fprintf(['\nwriteCTFds: Must supply inputs datasetname,ds,data.  ',...
                    
123      'Only %d input arguments are present.\n\n'],nargin);
                    
127
                    
128%  Check input argument unit.  Convert unit to lower case.
                    
129if exist('unit')~=1
                    
144if ~isstruct(ds) | ~isnumeric(data) | ~ischar(unit) | ~ischar(datasetname)
                    
145  fprintf('\nwriteCTFds: Some of the inputs are the wrong type.\n');
                    
146  whos datasetname ds data unit;
                    
                
loadcnt.m http://brainstream.googlecode.com/svn/trunk/ | MATLAB | 597 lines
                    
5%
                    
6% Inputs:
                    
7%   filename - name of the file with extension
                    
8%
                    
9% Optional inputs:
                    
10%  't1'         - start at time t1, default 0
                    
                
ft_sliceinterp.m http://brainstream.googlecode.com/svn/trunk/ | MATLAB | 518 lines
                    
76% a text box below the button. The coordinates correspond to indeces in the 
                    
77% input data array:
                    
78% 
                    
105
                    
106% check if the input data is valid for this function
                    
107ininterp = checkdata(ininterp, 'datatype', 'volume', 'feedback', 'yes');
                    
                
ft_dipolefitting.m http://brainstream.googlecode.com/svn/trunk/ | MATLAB | 587 lines
                    
95%   cfg.dipfit.constr   = Source model constraints, depends on cfg.symmetry
                    
96%   cfg.inputfile  = one can specifiy preanalysed saved data as input
                    
97%   cfg.outputfile = one can specify output as file to save to disk
                    
149if ~isfield(cfg, 'channel'),     cfg.channel = 'all';        end
                    
150if ~isfield(cfg, 'component'),   cfg.component = [];         end  % for comp input
                    
151if ~isfield(cfg, 'frequency'),   cfg.frequency = [];         end  % for freq input
                    
156if ~isfield(cfg, 'symmetry'),    cfg.symmetry = [];          end
                    
157if ~isfield(cfg, 'inputfile'),   cfg.inputfile = [];         end
                    
158if ~isfield(cfg, 'outputfile'),  cfg.outputfile = [];        end
                    
159
                    
160% load optional given inputfile as data
                    
161hasdata = (nargin>1);
                    
164  if hasdata
                    
165    error('cfg.inputfile should not be used in conjunction with giving input data to this function');
                    
166  else
                    
                
ft_sourceanalysis.m http://brainstream.googlecode.com/svn/trunk/ | MATLAB | 1037 lines
                    
112% cfg.powmethod     = 'lambda1' or 'trace'
                    
113% cfg.inputfile     = one can specifiy preanalysed saved data as input
                    
114% cfg.outputfile    = one can specify output as file to save to disk
                    
196% set defaults for optional cfg.inputfile, cfg.outputfile
                    
197if ~isfield(cfg, 'inputfile'),  cfg.inputfile                   = [];    end
                    
198if ~isfield(cfg, 'outputfile'), cfg.outputfile                  = [];    end
                    
199
                    
200% load optional given inputfile as data
                    
201hasdata = (nargin>1);
                    
201hasdata = (nargin>1);
                    
202if ~isempty(cfg.inputfile)
                    
203  % the input data should be read from file
                    
204  if hasdata
                    
205    error('cfg.inputfile should not be used in conjunction with giving input data to this function');
                    
206  else
                    
                
ft_electroderealign.m http://brainstream.googlecode.com/svn/trunk/ | MATLAB | 718 lines
                    
6% coordinate system is changed, or it can apply additional deformations
                    
7% to the input electrodes.
                    
8%
                    
11%
                    
12% Three different methods for aligning the input electrodes are implemented:
                    
13% based on a warping method, based on the fiducials or interactive with a
                    
18% and the template or standard electrode set. The warping methods use
                    
19% a non-linear search to optimize the error between input and template
                    
20% electrodes or the head surface.
                    
23% Realigning using the fiducials only ensures that the fiducials (typically
                    
24% nose, left and right ear) are along the same axes in the input eectrode
                    
25% set as in the template electrode set.
                    
282
                    
283    % plot lines connecting the input/warped electrode locations with the template locations
                    
284    my_line3(elec.pnt, avg, 'color', 'r');
                    
                
ft_artifact_zvalue.m http://brainstream.googlecode.com/svn/trunk/ | MATLAB | 362 lines
                    
19% If you are calling FT_ARTIFACT_ZVALUE with only the configuration as first
                    
20% input argument and the data still has to be read from file, you should
                    
21% specify:
                    
26%
                    
27% If you are calling FT_ARTIFACT_ZVALUE with also the second input argument
                    
28% "data", then that should contain data that was already read from file in
                    
116if nargin > 1
                    
117  % data given as input
                    
118  isfetch = 1;
                    
273    ylabel('cumulative z-value');
                    
274    [response, interactiveloop] = smartinput('\nwould you like to page through the data [y/N]? ', 'n');
                    
275    artval = {};
                    
299        artifact_viewer(cfg, cfg.artfctdef.zvalue, zsum, artval, zindx);
                    
300        cfg.artfctdef.zvalue.cutoff = smartinput(sprintf('\ngive new cutoff value, or press enter to accept current value [%g]: ', cfg.artfctdef.zvalue.cutoff), cfg.artfctdef.zvalue.cutoff);
                    
301      else
                    
                
topoplot.m http://brainstream.googlecode.com/svn/trunk/ | MATLAB | 622 lines
                    
14%
                    
15% Inputs can be either:
                    
16%     datavector  = vector of values to be plotted as color
                    
21%     Labels      = labels for channels in datavector
                    
22% or the inputs can be key-value pairs containing the (optional) parameters.
                    
23% Every cfg field can be specified using the fieldname as a key in the
                    
130
                    
131% Try to detect EEGLAB-style input and give an informative error
                    
132% message. The EEGLAB documentation describes the usage as
                    
136%        >>  [h grid_or_val plotrad_or_grid, xmesh, ymesh]= ...
                    
137%                           topoplot(datavector, chan_locs, 'Input1','Value1', ...);
                    
138
                    
151if eeglab
                    
152  % the input resembles the input of the EEGLAB topoplot function
                    
153  error('Unrecognized input, please look at "help topoplot", "which topoplot" and "path". The input looks as if you expect the EEGLAB version of the topoplot function. Your path settings may be incorrect and the FieldTrip and EEGLAB version of the "topoplot" function may be confused.')
                    
                
ft_spikedetection.m http://brainstream.googlecode.com/svn/trunk/ | MATLAB | 480 lines
                    
8% The configuration options can contain
                    
9%   cfg.dataset             = string with the input dataset
                    
10%   cfg.output              = string with the output dataset (default is determined automatic)
                    
139if hdr.nSamples<1
                    
140  error('the input dataset contains no samples');
                    
141elseif length(chansel)<1
                    
141elseif length(chansel)<1
                    
142  error('the input selection contains no channels');
                    
143end
                    
                
ft_databrowser_old.m http://brainstream.googlecode.com/svn/trunk/ | MATLAB | 1373 lines
                    
48% module, this function has the following options:
                    
49%   cfg.inputfile   =  ...
                    
50%   cfg.outputfile  =  ...
                    
50%   cfg.outputfile  =  ...
                    
51% If you specify one of these (or both) the input data will be read from a *.mat
                    
52% file on disk and/or the output data will be written to a *.mat file.
                    
54% files should contain only a single variable, corresponding with the
                    
55% input/output structure.
                    
56%
                    
89% set defaults for optional cfg.input and or cfg.outputfile
                    
90if ~isfield(cfg, 'inputfile'),       cfg.inputfile = [];               end
                    
91if ~isfield(cfg, 'outputfile'),      cfg.outputfile = [];              end
                    
117  if hasdata
                    
118    error('cfg.inputfile should not be used in conjunction with giving input data to this function');
                    
119  else
                    
                
ft_checkdata.m http://brainstream.googlecode.com/svn/trunk/ | MATLAB | 1972 lines
                    
2
                    
3% FT_CHECKDATA checks the input data of the main FieldTrip functions, e.g. whether
                    
4% the type of data strucure corresponds with the required data. If neccessary
                    
4% the type of data strucure corresponds with the required data. If neccessary
                    
5% and possible, this function will adjust the data structure to the input
                    
6% requirements (e.g. change dimord, average over trials, convert inside from
                    
8%
                    
9% If the input data does NOT correspond to the requirements, this function
                    
10% is supposed to give a elaborate warning message and if applicable point
                    
15%
                    
16% Optional input arguments should be specified as key-value pairs and can include
                    
17%   feedback           = yes, no
                    
80
                    
81% get the optional input arguments
                    
82feedback             = ft_getopt(varargin, 'feedback', 'no');
                    
                
ft_megrealign.m http://brainstream.googlecode.com/svn/trunk/ | MATLAB | 451 lines
                    
68% module, this function has the following options:
                    
69%   cfg.inputfile   =  ...
                    
70%   cfg.outputfile  =  ...
                    
70%   cfg.outputfile  =  ...
                    
71% If you specify one of these (or both) the input data will be read from a *.mat
                    
72% file on disk and/or the output data will be written to a *.mat file. These mat
                    
73% files should contain only a single variable, corresponding with the
                    
74% input/output structure.
                    
75%
                    
118
                    
119% check if the input cfg is valid for this function
                    
120cfg = ft_checkconfig(cfg, 'renamed',     {'plot3d',      'feedback'});
                    
136
                    
137% check if the input data is valid for this function
                    
138data = ft_checkdata(data, 'datatype', 'raw', 'feedback', 'yes', 'hassampleinfo', 'yes', 'ismeg', 'yes');
                    
                
exportfig.m http://uppsala-university.googlecode.com/svn/trunk/ | MATLAB | 502 lines
                    
92if (nargin < 2)
                    
93  error('Too few input arguments');
                    
94end
                    
108if (rem(length(paramPairs),2) ~= 0)
                    
109  error(['Invalid input syntax. Optional parameters and values' ...
                    
110	 ' must be in pairs.']);
                    
                
gpibproto.m https://code.google.com/p/ni-gpib-matlab-wrappers/ | MATLAB | 180 lines
                    
49fcns.name{fcnNum}='ibdma'; fcns.calltype{fcnNum}='stdcall'; fcns.LHS{fcnNum}='int32'; fcns.RHS{fcnNum}={'int32', 'int32'};fcnNum=fcnNum+1;
                    
50% extern int _stdcall ibexpert ( int ud , int option , void * Input , void * Output ); 
                    
51fcns.name{fcnNum}='ibexpert'; fcns.calltype{fcnNum}='stdcall'; fcns.LHS{fcnNum}='int32'; fcns.RHS{fcnNum}={'int32', 'int32', 'voidPtr', 'voidPtr'};fcnNum=fcnNum+1;
                    
                
pathdef.m http://neurociencia.googlecode.com/svn/trunk/ | MATLAB | 669 lines
                    
2%PATHDEF Search path defaults.
                    
3%   PATHDEF returns a string that can be used as input to MATLABPATH
                    
4%   in order to set the path.
                    
                
sctransp_1.m http://edufem.googlecode.com/svn/trunk/ | MATLAB | 837 lines
                    
9%      SCTRANSP_1('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in SCTRANSP_1.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to sctransp_1_OpeningFcn via varargin.
                    
17%
                    
                
rgbplot.m https://plplot.svn.sourceforge.net/svnroot/plplot | MATLAB | 34 lines
                    
18## rgbplot(MAP) plots a color map, i.e. an m-by-3 matrix which
                    
19## is appropriate input for COLORMAP. The three columns of the
                    
20## colormap matrix are plotted in red, green, and blue lines.
                    
                
odepkg.m https://octave.svn.sourceforge.net/svnroot/octave | MATLAB | 230 lines
                    
21%#
                    
22%# If this function is called without any input argument then open the OdePkg tutorial in the Octave window. The tutorial can also be opened with the following command
                    
23%#
                    
30
                    
31  %# Check number and types of all input arguments
                    
32  if (nargin == 0)
                    
34  elseif (nargin > 1)
                    
35    error ('Number of input arguments must be zero or one');
                    
36  elseif (ischar (vstr))
                    
38  else
                    
39    error ('Input argument must be a valid string');
                    
40  end
                    
                
savesurfpoly.m http://horwitzlab.googlecode.com/svn/ | MATLAB | 228 lines
                    
9%
                    
10% input:
                    
11%      v: input, surface node list, dimension (nn,3)
                    
12%         if v has 4 columns, the last column specifies mesh density near each node
                    
13%      f: input, surface face element list, dimension (be,3)
                    
14%      holelist: list of holes, each hole is represented by an internal point
                    
                
squareform.m https://octave.svn.sourceforge.net/svnroot/octave | MATLAB | 96 lines
                    
43      error ("squareform: cannot deal with a nonsquare, nonvector \
                    
44       input");
                    
45    endif
                    
                
MLP9_2_1.m https://octave.svn.sourceforge.net/svnroot/octave | MATLAB | 126 lines
                    
65
                    
66mValiInput = mInput(:,1:nValiSets);
                    
67mValliOutput = mOutput(:,1:nValiSets);
                    
73mOutput(:,1:nTestSets) = [];
                    
74mTrainInput = mInput(:,1:nTrainSets);
                    
75mTrainOutput = mOutput(:,1:nTrainSets);
                    
76
                    
77[mTrainInputN,cMeanInput,cStdInput] = prestd(mTrainInput);# standardize inputs
                    
78
                    
82# define the max and min inputs for each row
                    
83mMinMaxElements = min_max(mTrainInputN); % input matrix with (R x 2)...
                    
84
                    
118#     % standardise input & output test data
                    
119[mTestInputN] = trastd(mTestInput,cMeanInput,cStdInput);
                    
120# % [mTestOutputN] = trastd(mTestOutput,cMeanOutput,cStdOutput);
                    
                
gXCMDnolevers_hardware.m http://dotsx.googlecode.com/svn/trunk/ | MATLAB | 121 lines
                    
12%   The simple_demo task also uses the dXkbHID hardware device for checking
                    
13%   keyboard inputs, but that device is automatically activated and
                    
14%   configured by rInit.
                    
56    'mute',         mute, ...
                    
57    'rawSound',     {'Coin.wav',    'AOL_Hurt.wav'}, ...% scan 4 analog inputs (vs. ground) at 1000Hz
                    
58    'gain',         {.5,            2}};
                    
62
                    
63% scan 4 analog inputs (vs. ground) at 1000Hz   
                    
64% % mode = 1 means +/-10V
                    
                
hessian.m http://horwitzlab.googlecode.com/svn/ | MATLAB | 190 lines
                    
9% 
                    
10% arguments: (input)
                    
11%  fun - SCALAR analytical function to differentiate.
                    
                
questdlg.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 420 lines
                    
60%
                    
61%  See also DIALOG, ERRORDLG, HELPDLG, INPUTDLG, LISTDLG,
                    
62%    MSGBOX, WARNDLG, FIGURE, TEXTWRAP, UIWAIT, UIRESUME.
                    
102if nargin>6
                    
103  error('MATLAB:questdlg:TooManyInputs', 'Too many input arguments');NumButtons=3; %#ok
                    
104end
                    
                
odepkg_structure_check.m https://octave.svn.sourceforge.net/svnroot/octave | MATLAB | 392 lines
                    
19%# @deftypefn {Function} {@var{odestruct} =} odepkg_structure_check (@var{odestruct}, ['@var{solver}'])
                    
20%# Checks the field names and the field values of the OdePkg option structure @var{odestruct} and returns it if it is valid. If optionally called with a second string input argument '@var{solver}' specifying the name of a valid OdePkg solver then a higher level error detection is performed. If an invalid structure fieldname or an invalid value for an option is given then the function returns an error.
                    
21%#
                    
32
                    
33  %# Check the number of input arguments
                    
34  if (nargin == 0)
                    
36    error ('OdePkg:InvalidArgument', ...
                    
37      'Number of input arguments must be greater than zero');
                    
38  elseif (nargin > 2)
                    
                
ode45.m https://octave.svn.sourceforge.net/svnroot/octave | MATLAB | 344 lines
                    
60%
                    
61% INPUTS:
                    
62%    FUN   - String containing name of user-supplied problem description.
                    
                
bspderiv.m https://octave.svn.sourceforge.net/svnroot/octave | MATLAB | 68 lines
                    
23%  
                    
24%  INPUT:
                    
25% 
                    
                
rc2ar.m https://octave.svn.sourceforge.net/svnroot/octave | MATLAB | 92 lines
                    
6%
                    
7%  INPUT:
                    
8% RC    reflection coefficients
                    
17%
                    
18% All input and output parameters are organized in rows, one row 
                    
19% corresponds to the parameters of one channel
                    
                
mdctv.m http://aac-codec-matlab.googlecode.com/svn/ | MATLAB | 49 lines
                    
10%
                    
11%   x: input signal (can be either a column or frame per column)
                    
12%   y: MDCT of x
                    
                
model_handles2.m http://shel.googlecode.com/svn/trunk/ | MATLAB | 1544 lines
                    
22% s = model_handles;
                    
23% y = s.model_compute_input(); % --> the parenthesis ARE REQUIRED!
                    
24% y = s.model_compute_output( handles );
                    
177
                    
178s.model_compute_input = @ComputeModelInput;
                    
179s.model_compute_output = @ComputeModelOutput;
                    
181%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                    
182%% Here starts the model Inputs part
                    
183%%Initial conditions
                    
185
                    
186function ComputeModelInput(r)
                    
187%function ComputeModelInputs
                    
                
phonem.m http://phonemexplorer.googlecode.com/svn/trunk/ | MATLAB | 552 lines
                    
9%      PHONEM('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in PHONEM.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to phonem_OpeningFcn via varargin.
                    
17%
                    
                
Temperature.m http://freesteamplus.googlecode.com/svn/trunk/ | MATLAB | 742 lines
                    
237        if ((nargin > 4) && (nargin < 7))
                    
238            error('Therm:nargchk:improperNumberOfInputs','Improper number of input arguments.')
                    
239        end
                    
                
mscan.m http://matdatac.googlecode.com/svn/trunk/ | MATLAB | 225 lines
                    
85    if inter,
                    
86        r=input('Have you backed up your *.m files or some other safety routine? (y/n)','s');
                    
87        
                    
                
ellipse.m http://slac-lucretia.googlecode.com/svn/trunk/ | MATLAB | 56 lines
                    
7%
                    
8%  INPUTS:
                    
9%
                    
                
t2r.m http://slac-lucretia.googlecode.com/svn/trunk/ | MATLAB | 56 lines
                    
7%
                    
8% INPUTs:
                    
9%
                    
                
project_points2.m http://calib.googlecode.com/svn/trunk/ | MATLAB | 322 lines
                    
8%
                    
9%INPUT: X: 3D structure in the world coordinate frame (3xN matrix for N points)
                    
10%       (om,T): Rigid motion parameters between world coordinate frame and camera reference frame
                    
                
circ_otest.m http://sqwang-matlab.googlecode.com/svn/trunk/ | MATLAB | 82 lines
                    
11%
                    
12%   Input:
                    
13%     alpha	sample of angles in radians
                    
44  if length(alpha)~=length(w)
                    
45    error('Input length does not match.')
                    
46  end
                    
                
trywarning.m git://github.com/horchler/SHCTools.git | MATLAB | 340 lines
                    
111            elseif nargin > 1
                    
112                error('SHCTools:trywarning:trywarning:TooManyInputs',...
                    
113                      'Too many input arguments.');
                    
144            %   handler function with function handle FUN. FUN must accept two
                    
145            %   input arguments, MSG and MSGID, the last warning message and its
                    
146            %   assosciated message identifier string, respectively. FUN may
                    
151            %   errors are thrown by a handler function, FUN, or by CATCHWARNING
                    
152            %   itself due to invalid input.
                    
153            %
                    
220                    else
                    
221                        error('SHCTools:trywarning:catchwarning:UnkownInput',...
                    
222                             ['Unknown input type. Optional warning message '...
                    
227                elseif nargin > 2
                    
228                    error('SHCTools:trywarning:catchwarning:TooManyInputs',...
                    
229                          'Too many input arguments.');
                    
                
MATLAB_APBS_FOCUS.m git://pkgs.fedoraproject.org/apbs | MATLAB | 775 lines
                    
9%      MATLAB_APBS_FOCUS('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in MATLAB_APBS_FOCUS.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to MATLAB_APBS_FOCUS_OpeningFcn via varargin.
                    
17%
                    
                
MATLAB_APBS.m git://pkgs.fedoraproject.org/apbs | MATLAB | 783 lines
                    
9%      MATLAB_APBS('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in MATLAB_APBS.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to MATLAB_APBS_OpeningFcn via varargin.
                    
17%
                    
77handles.digit=6;
                    
78handles.filename='inputfile.inm';
                    
79% Update handles structure
                    
                
inmcreator.m git://pkgs.fedoraproject.org/apbs | MATLAB | 670 lines
                    
9%      INMCREATOR('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in INMCREATOR.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to inmcreator_OpeningFcn via varargin.
                    
17%
                    
76handles.digit=4;
                    
77handles.filename='inputfile.inm';
                    
78% Update handles structure
                    
                
bwarea.m https://octave.svn.sourceforge.net/svnroot/octave | MATLAB | 58 lines
                    
39  if (!isbw(bw))
                    
40    error("input image muste be either binary or gray scale.\n");
                    
41  endif
                    
                
odeexamples.m https://octave.svn.sourceforge.net/svnroot/octave | MATLAB | 54 lines
                    
35       '\n']);
                    
36    vfam = input ('Please choose a number from above or press <Enter> to return: ');
                    
37    switch (vfam)
                    
                
gacreationuniform.m https://octave.svn.sourceforge.net/svnroot/octave | MATLAB | 53 lines
                    
19##
                    
20## @strong{Inputs}
                    
21## @table @var
                    
                
SimSettings_staticErr.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 372 lines
                    
9%      SIMSETTINGS_STATICERR('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in SIMSETTINGS_STATICERR.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to SimSettings_staticErr_OpeningFcn via varargin.
                    
17%
                    
                
ft_datatype_sens.m http://brainstream.googlecode.com/svn/trunk/ | MATLAB | 172 lines
                    
77
                    
78% get the optional input arguments, which should be specified as key-value pairs
                    
79version = ft_getopt(varargin, 'version', 'latest');
                    
                
best_dir.m https://octave.svn.sourceforge.net/svnroot/octave | MATLAB | 183 lines
                    
28##
                    
29## INPUT :
                    
30## -------
                    
                
cheb1ord.m https://octave.svn.sourceforge.net/svnroot/octave | MATLAB | 150 lines
                    
49
                    
50  ## returned frequency is the same as the input frequency
                    
51  Wc = Wp;
                    
                
TimeCourse.m http://horwitzlab.googlecode.com/svn/ | MATLAB | 117 lines
                    
10disp('Then focus on white square and hit <return> again');
                    
11input('');
                    
12PR650init(1,0);
                    
21
                    
22input('');
                    
23pause(2);
                    
                
ccdPowerInstruction.m http://atf2flightsim.googlecode.com/svn/trunk/ | MATLAB | 78 lines
                    
9%      CCDPOWERINSTRUCTION('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in CCDPOWERINSTRUCTION.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to ccdPowerInstruction_OpeningFcn via varargin.
                    
17%
                    
                
eyediagram.m https://octave.svn.sourceforge.net/svnroot/octave | MATLAB | 271 lines
                    
74    else
                    
75      error ("eyediagram: real signal input must be a vector");
                    
76    endif
                    
79    if (min(size(x)) != 1)
                    
80      error ("eyediagram: complex signal input must be a vector");
                    
81    endif
                    
                
edge.m https://octave.svn.sourceforge.net/svnroot/octave | MATLAB | 241 lines
                    
8#
                    
9# INPUT
                    
10#  im     -> input image (greyscale)
                    
                
get_DR_corrs.m http://slac-lucretia.googlecode.com/svn/trunk/ | MATLAB | 165 lines
                    
10%
                    
11% INPUTs (opCode=1):
                    
12%
                    
17%
                    
18% INPUTs (opCode=2):
                    
19%
                    
47
                    
48% check input args
                    
49
                    
61  if (nargin<3)
                    
62    error('At least 3 input arguments required for opCode=1')
                    
63  end
                    
69  if (nargin<3)
                    
70    error('At least 3 input arguments required for opCode=2')
                    
71  end
                    
                
LogInDetails.m http://stock-shock-source.googlecode.com/svn/trunk/ | MATLAB | 151 lines
                    
9%      LOGINDETAILS('CALLBACK',hObject,eventData,handles,...) calls the local
                    
10%      function named CALLBACK in LOGINDETAILS.M with the given input arguments.
                    
11%
                    
15%      unrecognized property name or invalid value makes property application
                    
16%      stop.  All inputs are passed to LogInDetails_OpeningFcn via varargin.
                    
17%
                    
                
nyquist.m https://octave.svn.sourceforge.net/svnroot/octave | MATLAB | 211 lines
                    
26##
                    
27## @strong{Inputs} (pass as empty to get default values)
                    
28## @table @var
                    
97
                    
98function [realp, imagp, w] = nyquist (sys, w, outputs, inputs, atol)
                    
99
                    
105
                    
106  ## check number of input arguments given
                    
107  if (nargin < 1 || nargin > 5)
                    
116  if (nargin < 4)
                    
117    inputs = [];
                    
118  endif
                    
126
                    
127  [f, w, sys] = __bodquist__ (sys, w, outputs, inputs, "nyquist");
                    
128
                    
                
random.m https://octave.svn.sourceforge.net/svnroot/octave | MATLAB | 172 lines
                    
111function retval = random(name, varargin)
                    
112  ## General input checking
                    
113  if (nargin < 2)
                    
116  if (!ischar(name))
                    
117    error("random: first input argument must be a string");
                    
118  endif
                    
                
ft_realtime_fileproxy.m http://open-realtime-fmri.googlecode.com/svn/trunk/ | MATLAB | 164 lines
                    
137        if count==1
                    
138            % the input file may have a different offset than the output file
                    
139            offset = begsample - 1;
                    
                
disperror.m http://research-code-base-animesh.googlecode.com/svn/trunk/ | MATLAB | 92 lines
                    
4% 
                    
5% INPUT
                    
6%		DATA     Cell array of M datasets or dataset names (strings)
                    
                
rlocus.m https://octave.svn.sourceforge.net/svnroot/octave | MATLAB | 331 lines
                    
32##
                    
33## @strong{Inputs}
                    
34## @table @var
                    
66
                    
67  ## Convert the input to a transfer function if necessary
                    
68  [num, den] = sys2tf (sys);               # extract numerator/denom polyomials
                    
120  
                    
121  ## check for input arguments:
                    
122  if (nargin > 2)
                    
                
 

Source

Language