ENGIN 7 Study Guide - Midterm Guide: Environmental Engineering, European Route E77, Diminished Seventh Chord

21 views7 pages
8 Jan 2019
School
Department
Course
Professor

Document Summary

Notes (a) write your name and your sid on the top right corner of every page (including the first page) (b) full credit will be awarded only if the correct answer is given in the box provided. >> y=[y; y] y = 1 0 -1. The following matlab commands are saved in a script file called examquestion2. m. A=zeros(3); %this command establishes a as a 3x3 array of zeros. for m=1:3 for p=1:m end. What is the screen output when the script file examquestion2. m is run? b1 = 1 b2 = 0 b3 = 1 0. For each part, write the screen output in the boxes provided, and if there is an error, simply write error in the box. Do not worry about the exact format of the output. (a) the function x1. m is defined as follows. function z = x1(y) z=y+1;