Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
zdavis

Junior Member
Registered:
Posts: 11
Reply with quote  #1 
Hi,

I've got another problem coming up when I use set_object_path to move a target. If I have a fixation point I use eyejoytrack to acquire, and then put up a stimulus that moves in a path determined with set_object_path for a second eyejoytrack to acquire, I get the following error:

<<<*** MonkeyLogic ***>>> Timing File Execution Error
Error using cat
CAT arguments dimensions are not consistent.

Error in motionDetectA_runtime>end_trial (line 2055)
etX = cat(1, eyetargets{:, 1});

Error in motionDetectA_runtime (line 131)
TrialData = end_trial;

Error in monkeylogic (line 1109)
TrialData = feval(timingfile, TaskObject, ScreenInfo, DaqInfo, MLConfig.EyeTransform, MLConfig.JoyTransform, BehavioralCodes, TrialRecord, trialtype);

Error in mlmenu (line 2326)
monkeylogic(condfile, datafile, testflag);

I believe the problem is there is a vector of points to track for the target that is established by set_object_path, but the fixation point, which is static, has no list of points. When the two targets are concatenated the dimensions are off because one is a long vector (for the path of the target) and the first is static (the fixation point).

I can make an equal length vector zeros for my fixation points, but that seems cumbersome. Any better ideas?

0
ErikEmeric

Junior Member
Registered:
Posts: 25
Reply with quote  #2 
hi, 
did you ever get this resolved?
0
zdavis

Junior Member
Registered:
Posts: 11
Reply with quote  #3 
Not really. I made a work around. Basically I create a vector of equal length to the motion vectors for the stationary targets, but with the same position values (i.e. x and y vec = [0 0 0 0 0 0 0 ...]. 
0
ErikEmeric

Junior Member
Registered:
Posts: 25
Reply with quote  #4 
i'm having a similar problem. i'll give that shot.
thanks!
0
Jaewon

Administrator
Registered:
Posts: 971
Reply with quote  #5 

Have you guys tried giving the xpath and the ypath as column vectors?

set_object_path(2,[1 2 3],[1 2 3]);  % concatenation may fail

set_object_path(2,[1 2 3]',[1 2 3]');  % should be fine

0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.