Home > simtb_v18 > sim > simtb_main.m

simtb_main

PURPOSE ^

simtb_main() - Main function for performing simulations

SYNOPSIS ^

function simtb_main(sP)

DESCRIPTION ^

 simtb_main()  - Main function for performing simulations
           For each subject:
           - Generates time courses (TC) and spatial maps (SM)
           - Multiplies TC*SM and adds scaled activations to baseline (B) to make dataset (D)
           - Simulates dataset motion (OPTIONAL)
           - Adds Rician noise to dataset (OPTIONAL)
           - Saves parameters, TC, SM, dataset, motions parameters and any figures displayed.

 Usage:
  >> simtb_main(sP)

 INPUTS:
 sP        = simulation parameter structure 

 OUTPUTS:
 (none, all outputs are saved to file).
 If sP.verbose_display, will display and save images of parameters and output

 see also: simtb_create_sP(), simtb_params()

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Tue 29-Mar-2011 15:45:29 by m2html © 2005