{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

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

View Full Document Right Arrow Icon
1 ENGR 126 Vectors in Matlab and Sustainability in engineering design Jan 17, 2008 Nothing in your notes!
Image of page 1

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

View Full Document Right Arrow Icon
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
Image of page 2
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)
Image of page 3

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

View Full Document Right Arrow Icon
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
Image of page 4
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
Image of page 5

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

View Full Document Right Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern