ch4_1 - end else if mod(v,2) == 0 negEven = [negEven v];...

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

View Full Document Right Arrow Icon
D = [-4 -3 -2 -1 0 1 2 3 4]; posEven = []; negEven = []; posOdd = []; negOdd = []; for v = D if v >= 0 if mod(v,2) == 0 posEven = [posEven v]; else posOdd = [posOdd v];
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 else if mod(v,2) == 0 negEven = [negEven v]; else negOdd = [negOdd v]; end end end posEven negEven posOdd negOdd...
View Full Document

This note was uploaded on 03/10/2011 for the course ENG 06 taught by Professor Vamuri during the Winter '10 term at UC Davis.

Ask a homework question - tutors are online