elect - student = [student(end) student(1:2:end-1)];...

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

View Full Document Right Arrow Icon
function electedstudent = elect(student) f m = length(student); d = student(1:2:end); d if m==1 electedstudent = student; else if d(end)==student(end)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: student = [student(end) student(1:2:end-1)]; elect(student); else student = student(1:2:end); elect(student); end end...
View Full Document

Ask a homework question - tutors are online