win_or_lose

win_or_lose - status(i)=1; else status(i)=-1; end elseif

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

View Full Document Right Arrow Icon
function status = win_or_lose(xc, yc, numframes, radius, targetx, targettop, targetbot) status=zeros(1,numframes); for i=2 :numframes
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: status(i)=1; else status(i)=-1; end elseif xc(numframes)<targetx&&i==numframes; status(i)=-1; else status(i)=status(i-1); end end...
View Full Document

Ask a homework question - tutors are online