photo

Brett


Active since 2012

Followers: 0   Following: 0

Message

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Answered
Inconsistency in reassigning a variable for color
Resolved by doing it a completely different way.

12 years ago | 0

| accepted

Question


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 ago | 0 answers | 0

0

answers

Question


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 ago | 1 answer | 0

1

answer

Question


Invalid File Identifer - Help
My code: subject_number = input('Subject Number?'); %will prompt for subject number in the command window filename = ['In...

12 years ago | 1 answer | 0

1

answer

Question


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 ago | 3 answers | 0

3

answers

Question


Or any other key...
This is my code: [keyIsDown,secs,keyCode, deltaSecs] = KbCheck while keyIsDown == 0; %Will pres...

12 years ago | 1 answer | 0

1

answer

Question


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 ago | 1 answer | 0

1

answer

Question


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 ago | 2 answers | 0

2

answers

Question


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 ago | 1 answer | 0

1

answer

Question


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 ago | 1 answer | 0

1

answer

Question


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 ago | 1 answer | 0

1

answer

Question


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 ago | 3 answers | 0

3

answers

Question


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 ago | 2 answers | 0

2

answers

Question


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 ago | 1 answer | 0

1

answer

Question


Error with Screen Function
My code: "HideCursor; screenNum=2; [window, rect] = Screen('OpenWindow', screenNum, 1); [X,Y] = RectCenter(rect); FixCros...

12 years ago | 0 answers | 0

0

answers

Question


Oval in a Desire Location
Using PsychToolBox. My Code: "HideCursor; screenNum=0; [window, rect] = Screen('OpenWindow', screenNum, 1); [X,Y] = RectC...

12 years ago | 0 answers | 0

0

answers

Question


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 ago | 0 answers | 0

0

answers

Question


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 ago | 2 answers | 0

2

answers

Question


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 ago | 1 answer | 0

1

answer