Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
Guilhem Ibos

Junior Member
Registered:
Posts: 3
Reply with quote  #1 
Hi

I'm trying to record the name of stimuli picked from gen functions in the bhv file. I've used the following code in the timing file:

fname =  TrialRecord.CurrentConditionStimulusInfo{k}.MoreInfo.Filename;%strcat(StimulusInfo{k}.name);

and then

bhv_variable('Stim_Filename_1', fname);

It seems to be working since when I load my bhv file I can find the following field
UserVars.Stim_Filename_1
along with UserVars.SkippedFrameTimeInfo

However, when I try to access it, I end up with the following error message

'Expected one output from a curly brace or dot indexing expression, but there were 4 results.'

I really have no clue how to solve this problem. Any idea?
Thanks
Guilhem
 
0
Jaewon

Administrator
Registered:
Posts: 939
Reply with quote  #2 

What do you mean by "you try to access it"? Please show me how you tried to access.

0
Guilhem Ibos

Junior Member
Registered:
Posts: 3
Reply with quote  #3 
bhv=mlread

bhv.UserVars.Stim_Filename_1

I've also tried

bhv.UserVars(1).Stim_Filename_1
bhv.UserVars{1}.Stim_Filename_1

bhv.UserVars.Stim_Filename_1(1)
bhv.UserVars.Stim_Filename_1{1}
0
Jaewon

Administrator
Registered:
Posts: 939
Reply with quote  #4 
Try bhv(1).UserVars.Stim_Filename_1
0
Guilhem Ibos

Junior Member
Registered:
Posts: 3
Reply with quote  #5 

It works. Just the one I didn't tried...

Thanks Jaewon.

0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.