Optic Flow Random Dot Patterns

9 ビュー (過去 30 日間)
S Stron
S Stron 2012 年 11 月 13 日
回答済み: sinlin ray 2014 年 9 月 17 日
Hello everyone,
I have managed to code stimuli using psychtoolbox that displays a motion coherence paradigm for translational moving dots. However, I would also like to code radial and rotation patterns but I don't know the maths for this!
I was wondering if anyone could help me to adjust my code to make the dots move inward/outward and clockwise/anticlockwise.
At the moment, my dots move position by using this code:
dx = speed*sin(direction*pi)/frameRate;
dy = -speed*cos(direction*pi)/frameRate;
And (in case it's helpful) they remain in an aperture using this code:
x(x<lefBorder) = x(x<lefBorder) + apSize(1);
x(x>rigBorder) = x(x>rigBorder) - apSize(1);
y(y<botBorder) = y(y<botBorder) + apSize(2);
y(y>topborder) = y(y>topBorder) - apSize(2);
I hope one of you clever people will be able to help me out! Thank you, Sam

回答 (1 件)

sinlin ray
sinlin ray 2014 年 9 月 17 日
Maybe i can help you. you should send your code to me. i am a neuroscience phd student. My email : zllei@ion.ac.cn

カテゴリ

Help Center および File ExchangeImage display and manipulation についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by