**This is an old revision of the document!** ----
====== Math 445 Lab #2 ====== **Instructions:** Use the ''diary'' feature to create a diary file to record your Matlab session. Run ''format compact'' to save electrons and ultimately trees. Solve the problem set, then turn the diary off. Edit the diary with a text editor to remove mistakes, then print out the diary, write the names of your work group members on it, and turn it in. //Please distribute the work among the group members, and make sure that everyone understand everything!// Attaway edition 1 chapter 1 problems 23, 25, 26, 27, 34, 37. **Problem 23:** Create the following vectors twice, once using **linspace** and once using the colon operator. 1 2 3 4 5 6 7 8 9 10 2 7 12 **Problem 25:** Use the colon and transpose operators to create a column vector that has values -1 to 1 in steps of 0.2. **Problem 26:** Given a vector //v// of arbitrary length, write an expression that evaluates to the odd-numbered elements of //v//. Test your expression on vectors //v// of both even and odd length. **Problem 27:** Given a vector //v// of arbitrary length, write assignment statements that store the first half of //v// in a vector //v1// and the second half in a vector //v2//. Make sure your assignment statements work for //v// of both even and odd length. Hint: use a rounding function such as **fix**. **Problem 34:** Create a 4 x 2 matrix of all zeros and store it in a variable. Then replace the second row of the matrix with a 3 and a 6. **Problem 37:** Create a 3 x 5 matrix of random real numbers, and then delete the third row.