Home > demos > demo_generate_toy_heatmaps_csv.m

demo_generate_toy_heatmaps_csv

PURPOSE ^

This script demonstrates the functionality of the function

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

   This script demonstrates the functionality of the function
   'generate_toy_heatmaps_csv.m'. -- The function generates spatial heatmaps
   of the toy objects, conditioned on the cevent read from a CSV file
   -   Images are saved under
       /ein/multiwork/experiment_XX/included/data_vis/FOLDER/
   -   A .mat file with the raw heatmap data is saved at the same place
   -   One image and one .mat file is saved for every subject-pair, e.g.:
       '3213_cevent_inhand_child_childview.png'
       '3213_cevent_inhand_child_childview.mat'
   -   Once executed, the function prints out a progress status, listing
       how many (and which) subjects will be processed.

   PARAMETERS:
   -   SUBJECT: string saying either 'child' (default) or 'parent' --
       determines whether the heatmaps are from the child's or the
       parent's view

   -   CSV_FILE: path the CSV file that cointains CEVENT-like data

   -   COLS: columns of the CS that contian CEVENT (must be 
       [subject_id onset offset category], default is 1:4

   -   NUM_HEAD: number of lines in the CSV files with header info,
       i.e. number of lines to skip (default: 2)

   -   CEVENT_NAME: string that descibes the CEVENT (default: 'CSV_event')

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 %   This script demonstrates the functionality of the function
0002 %   'generate_toy_heatmaps_csv.m'. -- The function generates spatial heatmaps
0003 %   of the toy objects, conditioned on the cevent read from a CSV file
0004 %   -   Images are saved under
0005 %       /ein/multiwork/experiment_XX/included/data_vis/FOLDER/
0006 %   -   A .mat file with the raw heatmap data is saved at the same place
0007 %   -   One image and one .mat file is saved for every subject-pair, e.g.:
0008 %       '3213_cevent_inhand_child_childview.png'
0009 %       '3213_cevent_inhand_child_childview.mat'
0010 %   -   Once executed, the function prints out a progress status, listing
0011 %       how many (and which) subjects will be processed.
0012 %
0013 %   PARAMETERS:
0014 %   -   SUBJECT: string saying either 'child' (default) or 'parent' --
0015 %       determines whether the heatmaps are from the child's or the
0016 %       parent's view
0017 %
0018 %   -   CSV_FILE: path the CSV file that cointains CEVENT-like data
0019 %
0020 %   -   COLS: columns of the CS that contian CEVENT (must be
0021 %       [subject_id onset offset category], default is 1:4
0022 %
0023 %   -   NUM_HEAD: number of lines in the CSV files with header info,
0024 %       i.e. number of lines to skip (default: 2)
0025 %
0026 %   -   CEVENT_NAME: string that descibes the CEVENT (default: 'CSV_event')
0027 
0028 clear all;
0029 
0030 %% modify parameters below
0031 SUBJECT = 'child';
0032 FOLDER = 'heatmap_4';
0033 CSV_FILE = 'demo.csv';
0034 COLS = [1 2 3 4];            % optional
0035 NUM_HEAD = 2;                % optional
0036 CEVENT_NAME = 'CSV_event';    % optional
0037 
0038 generate_toy_heatmaps_csv(SUBJECT, FOLDER, CSV_FILE, COLS, NUM_HEAD, CEVENT_NAME);

Generated on Wed 24-May-2017 00:00:56 by m2html © 2005