script - end end if ctr == 2 y = [y, x(ind)]; else z = [z,...

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

View Full Document Right Arrow Icon
x = 1:50; ind=1; y = [ ]; z = [ ]; while length(y)<=10 ctr = 0; for k = 1:x(ind) if rem(x(ind),k)==0 ctr = ctr+1;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: end end if ctr == 2 y = [y, x(ind)]; else z = [z, x(ind)]; end ind = ind + 1; end y z...
View Full Document

This note was uploaded on 11/16/2009 for the course ENGIN 7 taught by Professor Horowitz during the Spring '08 term at Berkeley.

Ask a homework question - tutors are online