Homework 2 - COMS W3101-6 (CVN): Homework 2

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
COMS W3101-6 (CVN): Homework 2 http://www.cs.columbia.edu/~pblaer/matlab-cvn/hw2.html 1 of 3 4/8/2008 10:24 PM COMS W3101-6 (CVN) Spring 2008 Homework 2 Worth 15% of the total grade. For this assignment you should write a single m-script file called hw2.m . At the top of the file you should put your name and CUNIX ID in a comment. There are multiple exercises in this assignment. For each exercise you will have to write a single or series of MATLAB commands. Make sure to label your solution to each exercises with a comment. Exercises: You should not suppress output on any of your commands. All variables created should persist throughout the script (unless you are explicitly asked to clear them). That is, if you create a variable X in problem 2, I'm referring to the same X in problem 5. a. Display the square root of 2100 in scientific notation with 16 digit precision. Reset the format back to its default. b. Set s equal to the cosine of 30 degrees. c. Compute the inverse sine of s in radians. d. Set t equal to the result of part c converted to degrees. e. Compute the value of e t 1. a. Fill a column vector, x, with 20 equally spaced values. The first value should be 0, the last value should be 2pi. b. Fill a column vector y with 20 values. Each value of y should be equal to the corresponding value in vector x times the sine of the corresponding value in x. c. Using one short MATLAB statement, create a 20x4 matrix, xy, where the first 2 columns are copies
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 08/05/2008 for the course COMS W3101 taught by Professor Blaer during the Spring '08 term at Columbia.

Page1 / 3

Homework 2 - COMS W3101-6 (CVN): Homework 2

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online