Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


ContrastTest.m File Reference

Go to the source code of this file.


Functions

 for (iT=1:1:N_tasks)
 for (j=1:1:N_basis)
for each there are (polort+1) paramters in the baseline model mtrx
 fprintf (1, '\n\nYour contrast vectors for-glt options are:\n')
 for (k=1:1:N_tasks)
if El (i).order(j) = []
if for (m=1:1:N_basis)
if for (p=1:1:Task(k).BasisOpt_struct(m).maxlag-Task(k).BasisOpt_struct(m).minlag+1)%mtrx(i
j sign ()
 mtrx (i, p+(m-1)*(Task(k).BasisOpt_struct(m).maxlag-Task(k).BasisOpt_struct(m).minlag+1)...+(k-1)*(Task(k).BasisOpt_struct(m).maxlag-Task(k).BasisOpt_struct(m).minlag+1)*N_basis...+(polort+1)*N_runs)
Don t ask me how I worked
this out It is so tedious
and nasty to housekeep the
indices Don t even remember
how I figured it out now end
end end end end 
contrfile (i).name
 fprintf (1,'No.%i contrast vector= ', i)
 for (n=1:1:length)
 fprintf (1, '%g', mtrx(i, n))
 fprintf (fid, '%g ', mtrx(i, n))
end fprintf (1, '\n')
 fclose (fid)
 fprintf (1, '\nThe vector for No.%i contrast is stored in file%s.\n\n', i, contrfile(i).name)

Variables

 function [err, contrfile]
Bethesda Maryland Define the
function name for easy referencing 
FuncName = 'ContrastTest'
Debug Flag DBG = 1
initailize return variables err = 1
Create a matrix so that dDeconvolve
uses for regressor test 
length = (polort+1)*N_runs+N_base
end end mtrx = zeros(N_contr, (polort+1)*N_runs+N_basis*N_tasks)
for each run = input('at (TR): ')
 fid = fopen(contrfile(i).name, 'w')
 return

Function Documentation

for each there are polort 1  ) 
 

Don t ask me how I worked this out It is so tedious and nasty to housekeep the indices Don t even remember how I figured it out now end end end end end contrfile  ) 
 

El  )  = []
 

Referenced by MResize(), resize_XImage(), and SUMA_ProcessBrushStroke().

end fclose fid   ) 
 

for n  = 1:1:length  ) 
 

if for = 1:1:Task(k).BasisOpt_struct(m).maxlag - Task(k).BasisOpt_struct(m).minlag + 1  ) 
 

if for = 1:1:N_basis  ) 
 

for = 1:1:N_tasks  ) 
 

for j  = 1:1:N_basis  ) 
 

for iT  = 1:1:N_tasks  ) 
 

fprintf ,
'\nThe vector for No.%i contrast is stored in file%s.\n\n ,
,
contrfile(i).  name
 

end fprintf ,
'\n
 

fprintf fid  ,
'%g ,
mtrx(i, n
 

fprintf ,
'%g ,
mtrx(i, n
 

fprintf ,
'No.%i contrast  vector = ',
 

fprintf ,
'\n\nYour contrast vectors for-glt options are:\n
 

mtrx ,
p+(m-1)*(Task(k).BasisOpt_struct(m).maxlag-Task(k).BasisOpt_struct(m).minlag+1)...+(k-1)*(Task(k).BasisOpt_struct(m).maxlag-Task(k).BasisOpt_struct(m).minlag+1)*N_basis...+(polort+1)*  N_runs
 

j sign  )  [static, virtual]
 


Variable Documentation

Debug Flag DBG = 1
 

Definition at line 35 of file ContrastTest.m.

end err = 1
 

Definition at line 83 of file ContrastTest.m.

combine the two fid = fopen(contrfile(i).name, 'w')
 

Definition at line 597 of file IndiAna.m.

Referenced by conv_model(), SUMA_BrainVoyager_Read_vmr(), SUMA_Build_Cluster_From_Node(), SUMA_ConvexHullSurface(), SUMA_Convexity_Engine(), SUMA_DrawMesh(), SUMA_EquateSurfaceSize(), SUMA_FormNeighbOffset(), SUMA_Pattie_Volume(), SUMA_ProjectSurfaceToSphere(), SUMA_SphereQuality(), and SUMA_Surface_Curvature().

Bethesda Maryland Define the function name for easy referencing FuncName = 'ContrastTest'
 

Definition at line 32 of file ContrastTest.m.

function[err, contrfile]
 

Initial value:

 ContrastTest (N_runs, polort, N_basis, Task, N_tasks, N_contr, El, N_base)
%
%   [err,] = ContrastTest ()
%
%Purpose:
%   Construct the contrast test matrix used in -glt option of 3dDeconvolve.
%   
%   
%Input Parameters:
%   
%   
%   
%Output Parameters:
%   err : 0 No Problem
%       : 1  Problems
%   
%   
%      
%Key Terms:
%   
%More Info :
%   
%   
%   
%
%     Author : Gang Chen
%     Date : Tue Jul 29 13:01:05 EDT 2003
%     SSCC/NIMH/ National Institutes of Health

Definition at line 1 of file ContrastTest.m.

length = (polort+1)*N_runs+N_base
 

Definition at line 45 of file ContrastTest.m.

Referenced by alloc_ints(), alloc_vals_list(), arg_parse(), CacheLength(), computeVM(), COND_CopyText(), copy_variable(), countBytes(), DCM_ComputeExportLength(), DCM_ImportStream(), DCM_ListToString(), disp_numeric_data(), do_p1_comment(), emit_dac(), emit_dht(), EncodeCDC(), EncodeYDC(), entrypt(), exportData(), exportEncapsulatedPixels(), exportFixedFields(), exportPixels(), ExtractClassifiedVolume(), fvec_magnitude(), ge_header(), get_dht(), get_dqt(), get_dri(), get_interesting_appn(), get_sof(), get_sos(), glutBitmapLength(), glutStrokeLength(), hbAssignCodes(), hbCreateDecodeTables(), lengtype(), magnitude_f(), main(), make_data_reader(), match_table(), mri_read(), mri_read3D_analyze75(), mri_read_3A(), mri_read_3D(), mri_read_3D_delay(), mri_read_analyze75(), mri_read_ppm(), mri_read_ppm3(), nc_get_varm_double(), nc_get_varm_float(), nc_get_varm_int(), nc_get_varm_long(), nc_get_varm_schar(), nc_get_varm_short(), nc_get_varm_text(), nc_get_varm_uchar(), nc_put_varm_double(), nc_put_varm_float(), nc_put_varm_int(), nc_put_varm_long(), nc_put_varm_schar(), nc_put_varm_short(), nc_put_varm_text(), nc_put_varm_uchar(), ncdimdef(), ncdiminq(), p1gets(), parse_args(), process_COM(), process_SOFn(), put_one_arg(), read_ge_header(), read_ge_image(), ReadInputFileNames(), realloc_ints(), realloc_vals_list(), REORDER_main(), REORDER_parseMap(), save_marker(), SeparateLine(), setimpl(), settype(), skip_variable(), swapATGroupElement(), swapInPlace(), take_file_name(), THD_open_analyze(), THD_open_ctfmri(), THD_open_ctfsam(), UpdatePath(), vpClassifyScalars(), vprint(), vpScanlineNormals(), vpVolumeNormals(), write_generic_extension(), and writeFile().

end end mtrx = zeros(N_contr, (polort+1)*N_runs+N_basis*N_tasks)
 

Definition at line 49 of file ContrastTest.m.

return
 

Definition at line 84 of file ContrastTest.m.

else run = input('at (TR): ')
 

Referenced by ART_send_end_of_run(), check_stalled_run(), find_more_volumes(), PLUG_action_CB(), and SUMA_MarchingCubesSurface().

 

Powered by Plone

This site conforms to the following standards: