Following this link may get you blocked.
Sacan Bioinformatics Lab
Drexel University
You are here:
index
»
course
»
bmeprog
Table of Contents
Introduction to Programming in Matlab
Introduction to Your Computer
Intro to Matlab: Matlab IDE, Scripts, & Functions
Required Matlab Settings
Vectors & Matrices
Vectorized Code, Logical Indexing, Basic Statistics
Selection Statements
While Loop
For Loops
Cells
Structs
Working with Data Files
Introduction to Programming in Matlab
The optional readings are from
Matlab: A Practical Introduction to Programming and Problem Solving
by Stormy Attaway.
Introduction to Your Computer
Lecture Notes:
01.introtoprogramming.pdf
lecture recording
Intro to Matlab: Matlab IDE, Scripts, & Functions
Reading: Chapter 1, Chapter 2.
Instructions for Using Matlab Online
. Matlab Online should be used as “Plan B” if your Matlab installation is not working. If you have trouble installing or using Matlab program on your computer, let us know so we can help you troubleshoot.
Writing your first Matlab function
. We will discuss functions in more detail again. This is just a short overview to get you started.
2a.introtomatlab.pdf
introtomatlab
,
binary numbers
02.functions.pdf
functions
2b.builtinfunctions.datatypes.pdf
Required Matlab Settings
Go to Home tab –> Preferences –> Editor/Debugger –> Tab
Set Tab size: 2
Set Indent size: 2
Uncheck
“Tab key inserts spaces” if it is checked.
Check
“Emacs-style Tab key smart indenting”
Enter disp(tempdir()) in Matlab command window to find out your temporary directory. Make a note of the result.
Go to Home tab –> Preferences –> Editor/Debugger –> Backup Files
Set Location to “Single directory” and enter the path of your temporary directory.
Go to Editor tab –> click on the arrow underneath the Run icon –> make sure “Pause on Errors” is selected.
Vectors & Matrices
02.matrices.pdf
matrices
Vectorized Code, Logical Indexing, Basic Statistics
4.vectorize.pdf
relational.logical.pdf
logical.indexing.pdf
watch
Selection Statements
03.selection.pdf
selection
While Loop
Reading: Chapter4.
6.whileloop.pdf
watch
For Loops
Reading: Chapter4.
7.forloop.pdf
watch
Cells
Reading: Chapter8.
10.cell_basics.pptx
cell
Structs
Reading: Chapter8.
10.struct_basics.pptx
struct
Working with Data Files
11.workingwithdatafiles.pdf