Intro to MATLAB Flashcards

1
Q

What is psychtoolbox?

A
  • Uses MATLAB functions for behavioural experiments

- Precise control of stimulus and collection of responses

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the order of precedence in mathamatical functions?

A

1) Brackets
2) Power
3) Multiplication/Division
4) Addition/SUbtraction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does the command ‘clc’ do?

A

Clears command window

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does the function ‘clear’ do?

A

Removes items from the workspace

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does the function ‘save’ do?

A

Saves workspace variables to file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the function ‘load’ do?

A

Loads variables from file into workspace

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are variables?

A

A storage location paired with an associated symbolic name as an identifier
- Must be defined before it can be used

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are Boolean expressions?

A

Are either true or false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What can variables not do?

A

Contain spaces or start with numbers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does the ‘exist’ function do?

A

Checks for the existence of a variable or function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What can the ‘who’ function do?

A

list variables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What can the ‘which’ function do?

A

locate functions and files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are functions?

A

small executables which achieve a task in a pre-defined way

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the structure of a function in MATLAB?

A
function output = myfunction (input)
% description of function 
<< lines of code to implement function >>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are control statements?

A

Controlling what is executed when and under what conditions

e.g ‘if’, ‘elseif’ and ‘else’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly