Feeds
已回答
Inconsistency in reassigning a variable for color
Resolved by doing it a completely different way.
Inconsistency in reassigning a variable for color
Resolved by doing it a completely different way.
12 years 前 | 0
| 已接受
提问
matrix dimensions of an oval (pretty basic question)
Hi everyone, I know this is a basic question, but I'm not sure how to determine the matrix dimensions of an oval. This is the co...
12 years 前 | 0 个回答 | 0
0
个回答提问
Inconsistency in reassigning a variable for color
Hi Matlab community, so here is my code: randcol = randperm(4); q3col = randcol(1); q1col = randcol(2); q4col = randcol...
12 years 前 | 1 个回答 | 0
1
个回答提问
Invalid File Identifer - Help
My code: subject_number = input('Subject Number?'); %will prompt for subject number in the command window filename = ['In...
12 years 前 | 1 个回答 | 0
1
个回答提问
Disable all Keys Except...
Hi, I'm using psychtoolbox and I want to deactivate every key except for the ones related to my program. I know I can writing so...
12 years 前 | 3 个回答 | 0
3
个回答提问
Or any other key...
This is my code: [keyIsDown,secs,keyCode, deltaSecs] = KbCheck while keyIsDown == 0; %Will pres...
12 years 前 | 1 个回答 | 0
1
个回答提问
if this AND that then...
How do I say something like if value1 = 1 and value2 = 1 then... I'm trying to say that is something is a color and there is an ...
12 years 前 | 1 个回答 | 0
1
个回答提问
Key presses associated with colour
This is a tricky one to explain so bare with me. I have four colors that randomize so no color is the same as any other color: ...
12 years 前 | 2 个回答 | 0
2
个回答提问
Randomization... if not this then that
Here is my code: random = rand(1) if random <(1/4) tri1 = downtri b1 = vertbaseq1 elseif random>=(1/4) && ran...
12 years 前 | 1 个回答 | 0
1
个回答提问
Randomization one of four triangles - Error: index out of bounds
Here is my code: downtri = [50 0;0 50;-50 0]; uptri = [50 0;0 -50;-50 0]; righttri = [0 50;0 -50;50 0]; lefttri = [0 50...
12 years 前 | 1 个回答 | 0
1
个回答提问
Randomizing Shape and Location
Hi Matlab community, I love you guys. I'm using psychtoolbox and I am trying to randomize four direction of an triangle in four ...
12 years 前 | 1 个回答 | 0
1
个回答提问
How to draw an arrow or triangle
Hello Matlab community, I am trying to draw an arrow. I am using Psychtoolbox and there doesn't seem to be a specific command fo...
12 years 前 | 3 个回答 | 0
3
个回答提问
How to randomize the color of two objects so that are not the same color?
Here is my code: random = rand(1) if random <(1/4) colour1 = [200 200 0] elseif random>=(1/4) && random<(2/4) ...
12 years 前 | 2 个回答 | 0
2
个回答提问
Randomizing of an Oval Color
How do I randomize the color of a oval? My code: [window, rect] = Screen('OpenWindow', screenNum, 1); [X,Y] = RectCen...
12 years 前 | 1 个回答 | 0
1
个回答提问
Error with Screen Function
My code: "HideCursor; screenNum=2; [window, rect] = Screen('OpenWindow', screenNum, 1); [X,Y] = RectCenter(rect); FixCros...
12 years 前 | 0 个回答 | 0
0
个回答提问
Oval in a Desire Location
Using PsychToolBox. My Code: "HideCursor; screenNum=0; [window, rect] = Screen('OpenWindow', screenNum, 1); [X,Y] = RectC...
12 years 前 | 0 个回答 | 0
0
个回答提问
Make an image appear on screen
Hi, I'm really new to this and what I want is for an image from a .png file to appear on screen at a location of my choice. This...
12 years 前 | 0 个回答 | 0
0
个回答提问
Adding only present variables
Hi Matlab friends, you guys are the best! What I am trying to do is some up a bunch of variable values, however, if the variable...
12 years 前 | 2 个回答 | 0
2
个回答提问
Creating an matrix with values from a different m-file
Hi, I'm super new to this, so bare with me. So far I have assigned number values to push buttons that are related to a variables...
12 years 前 | 1 个回答 | 0