This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full 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
This note was uploaded on 02/20/2012 for the course CSCE 155N taught by Professor Sandeep during the Spring '11 term at UNL.
- Spring '11