Fundamentals of MATLAB for neuroscience research

819 views

Published on

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

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
819
On SlideShare
0
From Embeds
0
Number of Embeds
106
Actions
Shares
0
Downloads
14
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Fundamentals of MATLAB for neuroscience research

  1. 1. FUNDAMENTALS OF MATLAB FOR NEUROSCIENCE RESEARCH Dr. Brian J. Spiering
  2. 2. Agenda Strategies Tactics Tips & Tricks
  3. 3. Your Job is to define Your Job
  4. 4. Your job is to pick problems worth solving
  5. 5. Conducting research in MATLAB:
  6. 6. Current state of conducting research:
  7. 7. The future of conducting research:
  8. 8. Programming Best Practices
  9. 9. Dreyfus Model of Skill Acquisition 1) Novice 2) Advanced beginner 3) Competent 4) Proficient 5) Expert
  10. 10. NOVICE • Best served by being told what to do • Follow a manual • No possible decisions
  11. 11. ADVANCED BEGINNER • Best served by a bit of freedom • But unable to quickly describe a hierarchy of which parts are more important than others.
  12. 12. COMPETENT • Best served by the choosing among activities • Has the ability to make plans and create routines
  13. 13. PROFICIENT • The more freedom offered & the more expected, the more output generated
  14. 14. EXPERT • Writes the manual, doesn't follow it • Creates novel solutions to problems worth solving
  15. 15. HAVE A GOAL
  16. 16. HAVE A PLAN
  17. 17. D. R. Y. DON‘T REPEAT YOURSELF DON‘T REPEAT YOURSELF DON‘T REPEAT YOURSELF DON‘T REPEAT YOURSELF DON‘T REPEAT YOURSELF DON‘T REPEAT YOURSELF DON‘T REPEAT YOURSELF DON‘T REPEAT YOURSELF DON‘T REPEAT YOURSELF DON‘T REPEAT YOURSELF DON‘T REPEAT YOURSELF DON‘T REPEAT YOURSELF DON‘T REPEAT YOURSELF
  18. 18. ALWAYS BE SCRIPTING
  19. 19. MATLAB BEST PRACTICES
  20. 20. THINK IN MATRICES
  21. 21. 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 end end LIFE’S TOO SHORT FOR “FOR LOOPS”
  22. 22. STYLE IS IMPORTANT

×