ENGR 1187 Study Guide - Midterm Guide: Semicolon, Exponentiation, Row And Column Vectors

45 views32 pages
30 Oct 2014
Department
Course
Professor

Document Summary

A script file is an extension of the command window. Because of this, variable values set in the command window can be used in a script file and vice versa. If you don t want the values remembered then either use clear which clears all variables the listed or variables x, y, and z. clear x,y,z which clears just. 81012141618202224020040060080010001200distance (cm)intensity (lux)light intensity as a function of distancecomparison between theory and experiment. theoryexperimentfirst-year engineering program. Topics covered: scalar array addition, subtraction, multiplication, and division, array array addition and subtraction, element-by-element multiplication, division, and exponentiation. For all non-scalar array arithmetic we will be doing, arrays need to be the same size as each other. Scalar array addition and subtraction are done such that the scalar operates on each element in the array. For example, given the following matrix m and the scalar s = 2 we would get the following results for addition and subtraction.