Spring 09 WS 8

Spring 09 WS 8 - ENG EK 127 Worksheet 8(Review Name_Julian...

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

View Full Document Right Arrow Icon
ENG EK 127 Worksheet 8 (Review) Name: _____Julian Hart__________________________________ Instructions: Do all Problems. Then, spend the rest of the time studying for the exam on Friday. Make sure that you have done all worksheet problems and that your notes are complete and easy for you to understand. You will receive full credit for the attendance only for spending at least one hour doing these problems and studying; you may not leave earlier than that without having points deducted. 1. Generating random numbers: Generate a random integer in the range from 0 to 50 >> randint(1,1,[-1,51]) ans = 0 >> randint(1,1,[0,50]) ans = 44 >> Generate a random integer in the range from 10 to 20 >> randint(1,1,[10,20]) ans = 17 >> Generate a row vector with 4 random integers, each in the range from 0 to 10 >> randint(1,4,11) ans = 1 7 0 3 Generate a column vector with 4 random integers, each in the range from -5 to 5 >> r = randint(1,4,[-5,5]); >> c =r' c = 3 3 -3 0
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
>> Generate a 4 x 4 matrix of random integers, each in the range from 0 to 10
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 4

Spring 09 WS 8 - ENG EK 127 Worksheet 8(Review Name_Julian...

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

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