1) Task_01: drawing a square of 100 x 100 pixels in the center of screen
任务01:画一个100x100像素的方块在屏幕中央
Tips:
using Screen() function. (get help by >> doc screen or >> help screen)
使用>> doc screen 或者 >> help screen 获取Screen() 函数帮助
open window -> draw window -> close window
Friday, October 18, 2013
For Beginner to PsychToolBox of Matlab (00)
0) Basic Matlab function
Matlab基本命令
doc, help, which, size, length, class, ', disp,
in the command line:
在主命令行界面:
>> doc help
>> help doc
>> which doc
>> a = [1, 2]
a =
1 2
>> size (a)
ans =
1 2
>> length (a)
ans =
2
>> class(a)
ans =
double
>> a'
ans =
1
>> disp(a)
1 2
Matlab基本命令
doc, help, which, size, length, class, ', disp,
in the command line:
在主命令行界面:
>> doc help
>> help doc
>> which doc
>> a = [1, 2]
a =
1 2
>> size (a)
ans =
1 2
>> length (a)
ans =
2
>> class(a)
ans =
double
>> a'
ans =
1
>> disp(a)
1 2
Thursday, October 17, 2013
Some Tips for Matlab
1) sym
Create symbolic objects
http://www.mathworks.com/help/symbolic/sym.html
2) profile
http://www.mathworks.com/help/matlab/ref/profile.html
Create symbolic objects
http://www.mathworks.com/help/symbolic/sym.html
2) profile
Profile execution time for function
Subscribe to:
Posts (Atom)