Memorandums

知覚・認知心理学の研究と教育をめぐる凡庸な日々の覚書

刺激配置の調整

2005-10-28 | PsychToolBox
>>help screen
参照

--
Screen ARGUMENTS
"rect" argument:
"rect" is a 1x4 matrix containing the upper left and
lower right coordinates of an imaginary box containing all the pixels.
Thus a rect [0 0 1 1] contains just one pixel. All screen and window
coordinates follow Apple Macintosh conventions.
--
画面の大きさを行列で取得して利用することができる。
コメント
  • X
  • Facebookでシェアする
  • はてなブックマークに追加する
  • LINEでシェアする

途中で画面が止まったら

2005-10-28 | PsychToolBox
--
BRINGING FORWARD THE COMMAND WINDOW

OS9:
Command-zero brings the Matlab Command window forward. (Type a zero
"0" while holding the apple-cloverleaf "command" key down.)
---
WHEN YOU GET A MATLAB ERROR

If your computer only has one screen (the typical scenario) and your
program produces a Matlab error while your full-screen window is open,
you'll hear the beep, but you won't be able to see the Matlab Command
Window. Follow the instructions above for brining forward the command
widow, then type clear screen to flush just the Screen MEX file, or
"clear mex" to flush all the MEX files. When flushed, as part of its
exit sequence, Screen closes all its windows, restores the screen's normal
color table, and shows the cursor. Or you can get just those effects,
without flushing, by calling
Screen('CloseAll')
--
コメント
  • X
  • Facebookでシェアする
  • はてなブックマークに追加する
  • LINEでシェアする

刺激系列のランダム順化

2005-10-28 | MATLAB
Psychtoolbox←MATLAB で刺激系列のランダム順化をおこなう方法の一つとして、MATLABのrandperm 関数を使う方法が考えられる。1..n の整数をランダムに入れ替えることで、刺激系列と対応させれば、系列をランダム化できる。



References

MATLAB Function Reference
randperm
http://www.cybernet.co.jp/matlab/support/helpdesk/r13/toolbox/matlab/ref/randperm.shtml
コメント
  • X
  • Facebookでシェアする
  • はてなブックマークに追加する
  • LINEでシェアする