I just wanted to share a very quickly tested script I wrote that I find handy for creating paradigm files from my CIGAL ppf files. The file is in:
\\Gall\Programs\User_Scripts\Mack\cigal2paradigm.m
to call the script, just type:
cigal2paradigm(cigalFilename, paradigmFilename)
It is proper form to have the second column of the ppf file listing the stimulus type. Thus if you had a study comparing happy faces and sad faces with random objects in between, you would put a "1" in the second column on happy face lines, a "2" in the second column on sad face lines and a "0" in the second column on random object lines. This script will generate an output file with zeros at each time point with 1's and 2's replacing the zeros at each time point where a stimulus of type 1 or 2 is shown.
This script takes in to account startdelay, stopdelay and t_r values, so make sure these are all set appropriately or the script may not work.
Again, I have only tested this on my own CIGAL ppf files, so please double-check the output to make sure it makes sense. If you see any bugs, please let me know.