Difference between revisions of "Handle histDB"
From Bcontrol
(New page: <pre> % c=handle_histDB(sessid, owner, funcname, varname, trialnum) % % % Return the value of a SoloParamHandle in a particular trial number. If % trialnum is not passed, then returns...) |
m |
||
Line 44: | Line 44: | ||
% lwm=handle_histDB(42036,SameDifferent,'RewardsSection','left_wtr_mult') | % lwm=handle_histDB(42036,SameDifferent,'RewardsSection','left_wtr_mult') | ||
− | <pre> | + | </pre> |
Latest revision as of 10:00, 10 June 2009
% c=handle_histDB(sessid, owner, funcname, varname, trialnum) % % % Return the value of a SoloParamHandle in a particular trial number. If % trialnum is not passed, then returns a cell vector with the whole history % of the SoloParamHandle. If the SoloParamHandle is not found, returns an % empty cell; if the trial number requested is not found, returns an empty % vector. % % PARAMETERS: % ----------- % % sessid The session id. % % owner Either an object, or a string indicating the class of an object % % funcname A string indicating the name of the m-file in which the % SoloParamHamdle was declared. % % varname The name of the SoloParamHandle % % trialnum An optional integer vector. If passed, the value of the % SoloParamHandle for the indicated trial numbers will be % returned; if not passed, a cell vector with the entire history % will be returned. % % RETURNS: % -------- % % If trialnum is not passed, returns a cell vector with the entire history % of the SoloParamHandle; if trialnum is passed, returns the value on the % indicated trialnum. % % If the SoloParamHandle is not found, either because the owner is not % found, the funcname is not found, or the varname is not found, returns an % empty cell. If the history is empty, returns an empty cell. If the % trialnum is not found, returns an emoty matrix. % % % EXAMPLES: % --------- % % lwm=handle_histDB(42036,SameDifferent,'RewardsSection','left_wtr_mult')