This preview shows page 1. Sign up to view the full content.
Unformatted text preview: %order to compare it to the first vector num = sum(x==vec1) %this will add the trues (which will just be 1s) from the comparison %between the element in vec2 and the entire vec1 end end...
View Full Document
- Spring '08