ENGR132_Class2B_Amanda_Knutson

# ENGR132_Class2B_Aman - Welcome to ENGR132 Transforming Ideas to Innovation II Click to edit Master subtitle style Section 006 021 Prof Amanda

This preview shows pages 1–5. Sign up to view the full content.

Click to edit Master subtitle style ENGR132 Transforming Ideas to Innovation II Prof. Amanda Knutson and GTA Ben Ahn Class 2b Welcome to

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
4/24/11 Review of Activities from 1B To define vectors/matrices - use spaces or commas for row vectors, semicolons for column vectors) Can add a scalar to a vector, multiply a vector by a scalar – works element by element Can only add vectors of same length/orientation Use dot notation (.*, ./, .^) for element by element vector operations When you use the dot notation, the vectors must have the same length and same 22
4/24/11 Review of Activities from 1B Assume a matrix A has been defined in Matlab – you can access matrix elements two ways A(row#, column#) A(element number) You can access an entire row by using A(row#, :) You can access an entire column by using A(: , col#) The : here means all 33

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Plotting in Matlab What things are needed to make a plot acceptable for technical presentation? Labels, title, legend, units If you are plotting data stored in two vectors, do the vectors have to be the same length? Do they both have to be row/both column vectors? Vectors must be the same length, can be row or
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 04/23/2011 for the course ENGR 132 taught by Professor Kutson during the Spring '11 term at Purdue University-West Lafayette.

### Page1 / 14

ENGR132_Class2B_Aman - Welcome to ENGR132 Transforming Ideas to Innovation II Click to edit Master subtitle style Section 006 021 Prof Amanda

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online