Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clear
- clc
- load('Raw_Cam_Data')
- theta = deg2rad(1:1:360)
- phi = theta'
- R = Lift' + 17.6
- %==============================
- h = animatedline;
- axis([-30 30 -30 30])
- rotation = (-pi:pi/180:pi - (pi/180))'
- output = zeros(360,1)
- for II = 1:1:length(phi)-1
- x = R .* sin(theta + rotation(II))
- y = R .* cos(theta + rotation(II))
- [bucket, indice] = (min(y))
- output(II) = indice
- x_bucket = linspace(-25,25,359)
- y_bucket = bucket * ones(359,1)
- addpoints(h, x, y)
- addpoints(h, x_bucket, y_bucket)
- drawnow
- clearpoints(h)
- end
Add Comment
Please, Sign In to add comment