prob2 - dctArray = [1,3,5;9,11,13] % arraying them numbers...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
% Script Name: prob2 % Script Variables: % 1. dctArray - An array with the numbers 1,3,5 on the first row and the % numbers 9,11,13 on the second row. % 2. oneArray - A 4x5 array of ones. % 3. randArray - 6x3 array of random numbers between 0 and 1 % 4. vertArray - An array that is the vertical concatenation of the % arrays stored in "dctArray" and "randArray" % 5. slice - The top half of the "randArray" % 6. tpose - The transposed "randArray"
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: dctArray = [1,3,5;9,11,13] % arraying them numbers with two rows oneArray = ones(4,5) % ones of 4 rows and 5 columns randArray = rand(6,3) % random number between 0 and 1 within 6 rows and 3 columns vertArray = [dctArray; randArray] % dctArray is vertically on top of randArray slice = randArray(1: end/2, :) tpose = transpose(randArray) % changed the format as 3 rows and 6 columns...
View Full Document

This note was uploaded on 11/10/2009 for the course CS 1371 taught by Professor Stallworth during the Fall '08 term at Georgia Institute of Technology.

Ask a homework question - tutors are online