Home > data-import > supporting_functions > get_rate.m

get_rate

PURPOSE ^

reads .mat info file and returns framerate for camera

SYNOPSIS ^

function rate = get_rate(subid)

DESCRIPTION ^

reads .mat info file and returns framerate for camera

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 %reads .mat info file and returns framerate for camera
0002 function rate = get_rate(subid)
0003 
0004 path = get_subject_dir(subid);
0005 subinfo = get_subject_info(subid);
0006 
0007 pathfile = [path '/__' int2str(subinfo(3)) '_' int2str(subinfo(4)) '_info.mat'];
0008 z = load(pathfile);
0009 rate = z.trialInfo.camRate;
0010 end

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