searchstudent

searchstudent - count = count 1 out{count = v(j.name end...

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

View Full Document Right Arrow Icon
% 3/17/11 % function out = searchstudent(age,v) k = length(v); count = 0; for j = 1:k temp = v(j).age; if temp == age
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: count = count + 1; out{count} = v(j).name; end end if count == 0 out = 'No Match'; end...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online