This preview shows page 1. Sign up to view the full content.
Unformatted text preview: than storing your answer in a new variable. Remember, don't use direct % entry. Your code should perform some operations on the vector "vec". % You may (but are not required to) use more than one line of code to % solve the problem. s vec = [43 8 1 6 83 53 44 -11 90]; % DO NOT CHANGE THIS LINE v % using boolean indexing all in one line vec(mod(vec, 2) == 1) = ;...
View Full Document
- Fall '08