{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

CSE 155N Lab 3 Assignment

CSE 155N Lab 3 Assignment - three are the current date(year...

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

View Full Document Right Arrow Icon
CSE 155MN (Lab-3) Create a script to accomplish the directions of each question. Hand in each script through the web-handin. http://cse.unl.edu/~handin/ Due: Monday, September 12 at 11:59 pm Activity 1: Below are some matrix defined. (You can save the commands and answers related to Activity 1 to 4 in a MS-word and then submit via web-handin) A = 5 2 4 -3 6 2 3 -3 1 6 0 5 B = [5 9 -12] C = 9 15 -8 D = 5 10 4 -3 5 -3 E = 1 2 3 0 -6 7 F = 1 2 5 10 8 6 Solve the following expressions. If any case the expression can not be evaluated give the reason for that and give the alternative expression for the problem so as to solve it. a. A+E b. A * B c. B/C d. E.*F e. D./C Activity 2: Create a three dimensional matrix and get its size. Activity 3: Create a vector x that consist of 20 equally spaced points in the range from - π to + π . Create a y vector that is sin(x). Plot x and y on graph. Activity 4: The built-in function clock returns a vector that contains six elements: the first
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
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: three are the current date (year, month, day) and the last three are the current time in hours, minutes and seconds. The seconds is a real number, but all others are integers. Store the result from clock in a variable called myc. Then, store the first three elements in variable now. Use the fix function on the vector variable now to get just the integer part of the current time. Activity 5: The sales (in billions) for two separate divisions of XYZ corporation for each of the four quarters of 2010 are stored in a file called salesfigs.dat: 1.2 1.4 1.8 1.3 2.2 2.5 1.7 2.9 • Create this file • Load the data from file in a matrix • Write a script that will separate this matrix into two vectors and create the plot for both vectors Save your m-file as sales.m...
View Full Document

{[ snackBarMessage ]}

Page1 / 2

CSE 155N Lab 3 Assignment - three are the current date(year...

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

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