{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

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

1 ENGR 126 Vectors in Matlab and Sustainability in engineering design Jan 17, 2008 Nothing in your notes!

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

View Full Document
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)

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

View Full Document
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 that’s 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 time = distance ./ speed

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern