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

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

View Full Document Right Arrow Icon
Click to edit Master subtitle style ENGR132 Transforming Ideas to Innovation II Prof. Amanda Knutson and GTA Ben Ahn Class 2b Welcome to
Background image of page 1

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

View Full DocumentRight Arrow Icon
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
Background image of page 2
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
Background image of page 3

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

View Full DocumentRight Arrow Icon
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
Background image of page 4
Image of page 5
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 Right Arrow Icon
Ask a homework question - tutors are online