00001 function y = beacon_angles(u) 00002 init 00003 % This block supports an embeddable subset of the MATLAB language. 00004 % See the help menu for details. 00005 x=u(1); 00006 y=u(2); 00007 a=u(3); 00008 00009 beacons = area.beacon-ones(size(area.beacon))*diag([x y]); 00010 y = atan2(beacons(:,2), beacons(:,1))-a;