Array Operations
Using MATLAB as a glorified calculator is OK, but its
real strength is in matrix manipulations
To create a row vector, enclose a list of values
in brackets
You may use either a space or a
comma as a delimiter in a row
vector
Use a semico

The electrical resistance in a uniform section of material (for example, a wire)
depends on its length L, crosssectional area A, and the resistivity of the material
, so that
Here, resistivity () is the basic property that defines a material's capability

Structures
Sequence
Selection
Repetition
Sequence
Selection
Repetition (Loop)
Flow chart of an if/else structure
True
Block of code to
excute if the
comparison is true
Comparison
False
Block of code to
excute if the
comparison is false
Repetition Struc

Workspace Window
Current Directory
Window
Lists files stored in the
current directory
Command History
Window
Records all commands issued in
the command window including
mistakes
Hidden behind the Current
Directory
Command Window
Enter commands at the prom

The input function is used in an M-file
program to prompt the user to enter a
value
The prompt is displayed
in the command window
Input accepts a variety of data
Scalars
Matrices
enter inside square brackets
Character strings
enter inside single quot

In this lesson well
Learn how to manipulate matrices
Extract data from matrices
Solve problems with two variables
Manipulating Matrices
Well start with a brief review
To define a matrix, type in a list of numbers enclosed
in square brackets
Remember

ME201
Homework 1
Due to 9 November 2016
1) (25 p) The electrical resistance in a uniform section of material (for example, a wire) depends
on its length L, crosssectional area A, and the resistivity of the material , so that
Here, resistivity () is the ba