Csci3003_midterm2_Spring2009

Csci3003_midterm2_Spring2009 - Name Csci 3003 Midterm...

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

View Full Document Right Arrow Icon
Name: __________________ Csci 3003 Midterm Exam #2 Thursday, April 16, 2009 Guidelines (read carefully!) The exam will only consist of one section, and you are allowed to use your notes, lab solutions, the internet, Matlab, or any other resource other than your neighbor. You have the option of either writing your code by hand or implementing your code on the computer. Here is a summary of the guidelines: No emails other than to send your script to us. It is quite easy for us to tell if your script is based on someone else’s code so please do your own work! Anyone caught sharing/copying answers will receive a zero on the exam. If you choose to use your computer, you will need to email any finished scripts to Prof. Myers ( [email protected] ) and Sunayan ( [email protected] ) by the end of the class period (3:45pm) (no exceptions!). 1. (10 pts) Assume you have the following matrix, A , defined in your Matlab workspace: 2 3 1 7 0 6 5 2 1 A Write short series of statements to accomplish each of the following: a. (2 pts) Display the first row of the matrix. b. (2 pts) Access the submatrix 7 0 5 2 . c. (3 pts) Set the elements in the third column to zero.
Background image of page 1

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

View Full Document Right Arrow Icon
d. (3 pts) Remove the first row of the matrix, such that A contains the following after your statement: 2 3 1 7 0 6
Background image of page 2
2. (15 pts) Assume your Matlab workspace contains the following variables: Where genenames is a list of yeast genes, chroms is a vector of chromosomes (ranging from 1- 16) that indicates which chromosome the corresponding gene is encoded on, and orflengths contains the length (in base pairs) of each of the open reading frames (ORFs) for the genes. The first 17 values of each are pictured below: If you want to use your computer to work on this problem, you can download the data here http://www-users.itlabs.umn.edu/classes/Spring-
Background image of page 3

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

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

{[ snackBarMessage ]}

Page1 / 9

Csci3003_midterm2_Spring2009 - Name Csci 3003 Midterm...

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

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