Mauro Borgo, Alessandro Soranzo and Massimo GrassiMATLAB for Psychologists201210.1007/978-1-4614-2197-9© Springer Science+Business Media, LLC 2012

About the Authors

Mauro Borgo received his B.A. and his Ph.D. in Electronic and Telecommunication Engineering in 1999 and in 2003 respectively, both from the University of Padova, Italy. His interests are in signal and data processing for wireless communication. He adapted his skills in signal processing to multisensor/multiactuator cellular ­systems. He has an international patent on “multisite–single-cell electroporation.” He was a lecturer in electrical communication and in MATLAB at the University of Padova (Italy).
Alessandro Soranzo received his B.A. in experimental P\psychology in 1999 and his Ph.D. in experimental psychology in 2004, both from the University of Trieste, Italy. He also completed a postdoc in vision sciences at Glasgow Caledonian University (Glasgow, UK). He is senior lecturer in cognitive psychology at Teesside University in Middlesbrough (UK). His research interests are in color perception and psychophysical methods.
Massimo Grassi received his B.A. in experimental psychology in 1997 and his Ph.D. in experimental psychology in 2003, both from the University of Padova (Italy). He has also been a visiting scientist at the University of Sussex (UK). He is a lecturer in sensation and perception at the University of Padova (Italy). His research interests are in sound perception, cross-modal perception, and psychophysical methods.
Index
A
Analysis of Variance (ANOVA)
anovan () function
description
one-way (
See see One-way ANOVA)
three-way repeated-measure
two- and n-way (
See see Two- and n-way ANOVA)
two-way repeated-measure
AnsTime
B
Barweb
Bonferroni correction
Boundary extension (BE) experiment
C
Cells
arbitrary symbol
arrays
defined
input and output variables
matrix variable
output, cellplot command
Chi-square (Chi2)
Code
anovan () function
ASCII
Bonferroni correction
Friedman test
harmonic, factor
indentation
Kruskal–Wallis test
linear regression plot
logistic regression analysis
MATLAB
M-file
modularity
monophonic and stereophonic sound
onset and offset, sound
outputs, ANOVA table and box plot
SelectionChangeFcn function
soundsc () function
switch–case form
variables
Computation
anovan () function
expression
image creation
matrix
nchosek (n , x) function
numerical
polyfit function
statistics toolbox
Computer
factors, sound
languages
PTB routines
resources allocation
simulation
wavwrite () function
Covariance
Creativity
Cycles
code
and conditionals
for loop
memoryscore
visualization, scope
cosine
sine, argument
D
Data
analysis
handling (
See see Data handling)
import/export
matrix
plot (
See see Plot data)
psychtoolbox commands
SekulerExp function
structure
Data handling
experiment
import/export
variables
cells
logical
NaN
strings
structures
3-D plots
E
Experiment
adaptive procedures
analysis
ANOVA
barweb
boundary extension (BE)
brick
calculation, column mean
corollary functions
discs movements
event table
“fixed stimuli” experiment
graphical interface
hypothetical data, logistic regression analysis
hypothetical perceptual learning
iconic memory
MATLAB
memory
M-script
objects
psychology
RTs
SekulerExp function
text properties, objects
ttest () function
user input
Export
image
script examples
analysis
commands
fprintf functions
howmany2.m
nStim , time , and Mpos functions
try–catch statement
F
Fast Fourier transform (FFT)
FFT
See See Fast Fourier transform (FFT)
“Fixed stimuli” experiment
Friedman’s Test
G
Generalized linear model
glmfit () function
hypothetical data, logistic regression analysis
Graphical user interfaces (GUI)
built-in MATLAB, fiting
Edit menu
File menu
GUIDE
layout editor
M-file
quick start dialog form
GUI toolbar
adding UiControls
cancel_callback function
change string and tag property, “cancel”
component palette
property inspector box
push button
Help menu
interaction tools
Layout menu
mystruct variable
output, regstats () function
Radio button
RunExp
saving user input
adding own functions
sum_calback function
text properties
Tools menu
Uicontrols
align objects tool
displaying graphs and figures
layout editor
static text components
string property
‘string’ values
sum-two-numbers
View menu
Graphics
handle
MATLAB
png format
GUI
See See Graphical user interfaces (GUI)
I
ILD
See See Interaural level difference (ILD)
Images
Adobe Photoshop
built-in functions
colormap (cmap) and DefColMap
colormapeditor
computation
contrast and successive contrast effect
Gabor2D function
Gaussian window
plotting commands
PsychToolbox
Sinusoid2D
defined, digital
digital representations
display
example, 5 × 5 gray-scale
import and export
importing
indexing
manipulation
neighborhood processing
point operations
MATLAB
neighborhood processing
concept
defined, filtering
edges
example
filter2 function
FilterGSpecial
fspecial function
imresize function
lunar, Gaussian
types
point operations
intensity transformation
windowing
printing and saving
retinal
Import
data
file formats
images
variables subset
Interaural level difference (ILD)
Interaural time difference (ITD)
ITD.
See See Interaural time difference (ITD)
K
Keyboard
manipulations
and mouse functions
input
instructions presentation
reaction-time
response
spacebar
Kruskal-Wallis Test
ANVOA table
defined
Friedman’s
hypothetical data, BEs
L
Labels
cell array
customization, plots
function analysis
interaction
Legend
Linear regression, simple and multiple
built-in MATLAB, basic fitting
diagnosis, structure
GUI output
hypothetical data
plots
polynomials
regstats () function
Loops
for
while structure
M
Mann-Whitney U Test
MATLAB
Avogadro’s number
command lines
desktop
experiment
functions
matrix
operations
element-by-element operators
multiplication
techniques, matrices
visual interpretation, matrix product
precedence rules
use
variables
windows
Matrix
[anova1(X)]
AnsTime
cell
cell matrix variable
color map
colormap (cmap) function
commands
corrcoef () function
covariance
2-D
3-D plots
function
Gaussian distributed random numbers
image, jpg and png
intensity
mapTrees
measure, central tendency
rectangular array, numbers
RGB image
RGB values
SqWindow
structures
varargin
variables
creation
implementation
and vectors
windowing
Mouse
input
placing discs with
N
Nonparametric statistics
categorical data
binomial distribution
ordinal data
Kruskal–Wallis test
Mann–Whitney U test
Wilcoxon signed rank test
STD index (
See see Signal-detection theory (STD))
Not a Number (NaN)
O
Object orienting programming (OOP) technology
One-way ANOVA
anova1 () function
ANOVA table
hypothetical data, RTs
interactive plot, Bonferroni correction
multcompare () function
table and box plot, hypothetical probe
P
Pictures
Plot data
control objects
3-D
handle graphics
figure’s characteristics
graphical object hierarchy
line and axes properties
production, simple graphs
layout, function
LineSpec string
MATLAB
multiple plots, figure
printing and saving images
sinusoidal curve
Png
See See Portable network graphics (Png)
Point operations
intensity transformation
description
floor ” function
MATLAB Image Toolbox
use
variations
windowing
concept
SqWindow matrix
Portable network graphics (Png)
Printing
Programming
control flow statements
break
cycles and conditionals
for loops
loops vs. matrices and if vs. logicals
switch case
try–catch
while
data import/export
ASCII form
cell values
content, file
DisplayFile
iconic memory
test function
try–catch statement
functions
cell matrix variable
input and output arguments
MATLAB built-in function
scope, variables
script line
statistic
statTwo
guidelines, good style
debug
design process
writing code
M-scripts and functions
Programs
key-press event
OOP technology
portability
and statistical analysis
Psychological experiments
anovan () function
chi2gof () function
glmfit () function
PTB functions
regression model
RTs
Psychophysics toolbox (PTB)
analysis
batch processing
control, timing
description
drawing figures
closing
Flip subfunction
window opening
drawing, text
experiment
getting information, screen uses
importing images
keyboard and mouse functions
input
instructions presentation
reaction-time
response
spacebar
for loops
onset/offset times
priority
reprise
analysis
drawing shapes
screen function
analysis
optional and unoptional input arguments
try-catch commands
screen refresh rate
shape characteristics manipulation, participants’ input
description
discs placing, mouse
keyboard
sound functions
timing
PTB.
See See Psychophysics toolbox (PTB)
R
Reaction times (RTs)
anova1 () and anova2 () function
choice
description
detection
Go/No-Go
hypothetical data
techniques
Research
RMS.
See See Root mean square (RMS)
Root mean square (RMS)
RTs.
See See Reaction times (RTs)
S
Signal detection theory (STD).
See also See also Statistical analysis
bias indexes (β and c )
description
nonparametric indexes (A׳ and B״)
sensitivity index (d׳)
Simulation
Software
characteristics
processes
Sounds
analysis
acoustical characteristics
FFT
magnitude spectrum, “chirp”
sr and bits variables
anharmonic tone
condition
discs’ motion
envelope
digital synthesis
graphs
offsetgate = fliplr (gate);
smoothing
sound (tone , sr)
filtering
description
Gaussian white noise
noise = fft (noise);
functions
MakeBeep() function
subfunctions, PsychPortAudio
manipulation, level
factors, MATLAB
soundsc () function
waveforms
MATLAB warning
M-script and graphical result
multiple
noise–tone sequence
pulsation threshold
temporal offset
tone and noise synthesis
sawtooth wave
sinusoidal tone
soundsc (harmonic , sr);
stereophonic, ITD and ILD
description
digital synthesis
loop iteration
microsecond expression
mutatis mutandis
wavplay () function
wavwrite () function
white noise
Statistical analysis
bivariate and multivariate
arguments
covariance
defined, correlation and covariance
generalized linear model
hypothetical data
linear regression, simple and multiple
central tendency
measures
toolbox
dispersion
measures
unbiased estimator
inferential
ANOVA
parametric
t -test
nonparametric
categorical data
ordinal data
STD (
See see Signal-detection theory (STD))
Statistics
See also See also Statistical analysis
STD.
See See Signal detection theory (STD)
Strings
conversion specification and special characters
creation, formatted strings
defined
functions
linespec
“static text”
and tag properties
Uicontrol
variable implementation
Structures
anova1 () function
cell values
confidence intervals
diagnostic statistics
dynamic field names
for
guidata
harmonic spectrum
ifelseend
input/output arguments
loop
MATLAB
multicomparison test
mystruct variable
OutputFcn function
regression coefficients
SubjectTest variable
t -tests
while
T
t -Test
functions
one-sample
binary form
defined
two-sample
hypothetical data, RTs
ttest2 ( )
Two- and n-way ANOVA
anova2 ( ) function
hypothetical data, RTs
significance, variables
table output
V
Variables
anovan () function
cell matrix
cells
clear command
correlation and covariance
counter
DefColMap
defined
dependent (DV)
diagonal, output matrix
digital synthesis
Friedman test
geometric and harmonic mean
global
independent (IV)
input and output
ITD
kruskalwallis () function
logical
categorization, response time
creation
functions
relational operators
vectors
magnitude spectrum, chirp
mandrill and map
MATLAB prompt
memoryscore
multcompare () function
NaN
persistent
PNG image
predefined names
regstats () function
response keys
rules, variable names
scope
sine waves
sr and bits
strings
structures
two-way repeated-measures
user inputs
whos command uses
W
Waveforms
sawtooth wave, harmonics
sound level
timbre, complex tone
Wilcoxon signed rank test
Z
z -test