fundamentals of matlab for neuroscience research

26
FUNDAMENTALS OF MATLAB FOR NEUROSCIENCE RESEARCH Dr. Brian J. Spiering

Upload: brianspiering

Post on 03-Jun-2015

421 views

Category:

Technology


4 download

DESCRIPTION

An introduction to using MATLAB for psychology research. "The Why" behind how to program effectively.

TRANSCRIPT

Page 1: Fundamentals of MATLAB for neuroscience research

FUNDAMENTALS OF MATLABFOR NEUROSCIENCE RESEARCH

Dr. Brian J. Spiering

Page 2: Fundamentals of MATLAB for neuroscience research

AgendaStrategies

Tactics

Tips & Tricks

Page 3: Fundamentals of MATLAB for neuroscience research

Your Job is to define

Your Job

Page 4: Fundamentals of MATLAB for neuroscience research

Your job is to pick problems

worth solving

Page 5: Fundamentals of MATLAB for neuroscience research
Page 6: Fundamentals of MATLAB for neuroscience research

Conducting researchin MATLAB:

Page 7: Fundamentals of MATLAB for neuroscience research

Current state of conducting research:

Page 8: Fundamentals of MATLAB for neuroscience research

The future of conducting research:

Page 9: Fundamentals of MATLAB for neuroscience research
Page 10: Fundamentals of MATLAB for neuroscience research

ProgrammingBest Practices

Page 11: Fundamentals of MATLAB for neuroscience research

Dreyfus Model of Skill Acquisition

1) Novice

2) Advanced beginner

3) Competent

4) Proficient

5) Expert

Page 12: Fundamentals of MATLAB for neuroscience research

NOVICE

• Best served by being told what to do

• Follow a manual

• No possible decisions

Page 13: Fundamentals of MATLAB for neuroscience research

ADVANCED BEGINNER

• Best served by a bit of freedom

• But unable to quickly describe a hierarchy of which parts are more important than others.

Page 14: Fundamentals of MATLAB for neuroscience research

COMPETENT

• Best served by the choosing among activities

• Has the ability to make plans and create routines

Page 15: Fundamentals of MATLAB for neuroscience research

PROFICIENT

• The more freedom offered & the more expected, the more output generated

Page 16: Fundamentals of MATLAB for neuroscience research

EXPERT

• Writes the manual, doesn't follow it

• Creates novel solutions to problems worth solving

Page 17: Fundamentals of MATLAB for neuroscience research

HAVE A GOAL

Page 18: Fundamentals of MATLAB for neuroscience research

HAVE A PLAN

Page 19: Fundamentals of MATLAB for neuroscience research

D.R.Y.

DON‘T REPEAT YOURSELFDON‘T REPEAT YOURSELFDON‘T REPEAT YOURSELFDON‘T REPEAT YOURSELFDON‘T REPEAT YOURSELFDON‘T REPEAT YOURSELFDON‘T REPEAT YOURSELFDON‘T REPEAT YOURSELFDON‘T REPEAT YOURSELFDON‘T REPEAT YOURSELFDON‘T REPEAT YOURSELFDON‘T REPEAT YOURSELFDON‘T REPEAT YOURSELF

Page 20: Fundamentals of MATLAB for neuroscience research

ALWAYS BE SCRIPTING

Page 21: Fundamentals of MATLAB for neuroscience research
Page 22: Fundamentals of MATLAB for neuroscience research

MATLABBESTPRACTICES

Page 23: Fundamentals of MATLAB for neuroscience research

THINK IN MATRICES

Page 24: Fundamentals of MATLAB for neuroscience research

for a=1:nb for b=1:nb for c=1:nb for d=1:nb p2hf(a,b,c,d) = 2*p1hf(a,b)*p1hf(c,d) -

p1hf(a,c)*p1hf(b,d); end end endend

LIFE’S TOO SHORTFOR “FOR LOOPS”

Page 25: Fundamentals of MATLAB for neuroscience research

STYLE IS IMPORTANT

Page 26: Fundamentals of MATLAB for neuroscience research