2-2 - 1 ENGR 126 Vectors in Matlab and Sustainability in...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1 ENGR 126 Vectors in Matlab and Sustainability in engineering design Jan 17, 2008 Nothing in your notes! 2 learning objectives Recognize MATLAB vector commands understand why sustainable designs are part of good engineering define the ideas of cradle-to-cradle; energy footprint; systems design estimate a way to calculate your own energy footprint brainstorm these concepts applicability to your design project MATLAB vectors Entering matrices using spaces or commas to separate columns using semicolons or new lines to separate rows Building vectors u = [0:1:5] u = [0:pi/18:2*pi] entering matrices as matrix terms A = [r s] A(1,2) = 2 note A(row , column) address replacing a row or column of a matrix A(:,2) vector operations Incrementing: TempK = TempC + 273.15 Scaling: Length_cm = Length_in * 2.54 Certain functions (sqrt, sin, cos, log) Vectors add the same way numbers do Matlab can multiply vectors and matrices If thats not what we want to do, we need to use a different operator Term-by-term Operators Preceded by a period, as in .* Cause terms in one array to operate on corresponding terms in another array...
View Full Document

This note was uploaded on 04/13/2008 for the course ENGR 126 taught by Professor Oakes during the Spring '08 term at Purdue University-West Lafayette.

Page1 / 24

2-2 - 1 ENGR 126 Vectors in Matlab and Sustainability in...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online