HW3ABC - for x = A(B E = E x end elseif D == 1 while E< 10 E = E 1 end else D == 2 E = 0 end

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

View Full Document Right Arrow Icon
Sheet1 Page 1 clear clc A = ones(1,5) B = 1:length(A) C = rand(1,1) * 10 if C < 4 D = 0 elseif C > 7 D = 1 else D = 2 end E = 0 if D == 0
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: for x = A(B) E = E + x end elseif D == 1 while E < 10 E = E + 1 end else D == 2 E = 0 end...
View Full Document

This note was uploaded on 07/06/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