Register Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
Sheena

Junior Member
Registered:
Posts: 13
Reply with quote  #1 
Hi, is it possible to present a same picture with pseudo-random orientations across trials?

For example,
trial 1: arrow towards the left.
trial 2: arrow towards the top-right.

How can I do?

My ML version: MonkeyLogic_stable-1.2.85 with NIMH_daqtoolbox_(May-19-2016)

Thanks.
0
Jaewon

Administrator
Registered:
Posts: 648
Reply with quote  #2 
Unless you need to change the arrow orientation parametrically at many different levels, I think it is better to make all stimuli manually.
0
Sheena

Junior Member
Registered:
Posts: 13
Reply with quote  #3 
Thank you Jaewon.

Unfortunately, I have 2 arrows in each trial. For each arrow, the orientation should be range from 0° to 360°. It results 360 stimuli and 360*360 combinations. I thinks it is hard to make manually.

Do you have any suggestions?
0
Jaewon

Administrator
Registered:
Posts: 648
Reply with quote  #4 
Have you used a TaskObject type, Gen? Basically you can provide a MATLAB function in the condition file that creates stimuli online.

http://www.brown.edu/Research/monkeylogic/conditionsfiles.html#arguments

You can make and add a gen function like the following. You may want to decide the angles of arrows based on the trial conditions. I will leave it up to you. Here is a link that you can refer to.

http://www.brown.edu/Research/monkeylogic/timingscripts.html#trialrecord

----- Begining of gen function -----
function new_arrow = rotate_arrow(TrialRecord)

arrow = imread('arrow_deg0.bmp');
angle = 360 * rand(1);
new_arrow = imrotate(arrow,angle);
----- End of gen function -----

0
neo3dot1415

Junior Member
Registered:
Posts: 29
Reply with quote  #5 
Hi,

If we need different orientation for a rectangle, what would be the best solution?

For 90 degree rotation, I switch the size of rectangle in the Condition File. But, what about 45, 225, ... ?


Thanks. 
0
Jaewon

Administrator
Registered:
Posts: 648
Reply with quote  #6 
You can draw a bitmap of a rectangle and use the same code I posted above.
0
castiel

Junior Member
Registered:
Posts: 27
Reply with quote  #7 
Quote:
Originally Posted by Jaewon
You can draw a bitmap of a rectangle and use the same code I posted above.


Hello Jaewon

It's me again, yes, i looked this page, and i have a same question about pseudo-random, i mean my task is ODR Task, and it will present to the monkey 8 orientations, and now i'm training the monkey with  random order of 8 orientations, but the point it that: i need the monkey back to do the specific orientation again  which he performed it wrong , and until he perform this trial right, he will get another orientation. 

so, i'm trying to solve this problem, can you give me some advices? 

BTW, Merry Christmas Eve.

[smile]
 
0
Jaewon

Administrator
Registered:
Posts: 648
Reply with quote  #8 
I don't understand your question, but, if what you are asking is how to repeat the trial until the monkey performs the trial correctly, you can change the "On error" setting on the main menu to "repeat immediately".
0
castiel

Junior Member
Registered:
Posts: 27
Reply with quote  #9 
Quote:
Originally Posted by Jaewon
I don't understand your question, but, if what you are asking is how to repeat the trial until the monkey performs the trial correctly, you can change the "On error" setting on the main menu to "repeat immediately".



Hi!!!

Okay, i know, i'm going to try, thanks!!
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.