Guest User

Untitled

a guest
Jan 21st, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. clear
  2. clc
  3. load('Raw_Cam_Data')
  4. theta = deg2rad(1:1:360)
  5. phi = theta'
  6. R = Lift' + 17.6
  7. %==============================
  8. h = animatedline;
  9. axis([-30 30 -30 30])
  10. rotation = (-pi:pi/180:pi - (pi/180))'
  11. output = zeros(360,1)
  12. for II = 1:1:length(phi)-1
  13.  
  14. x = R .* sin(theta + rotation(II))
  15. y = R .* cos(theta + rotation(II))
  16.  
  17. [bucket, indice] = (min(y))
  18. output(II) = indice
  19. x_bucket = linspace(-25,25,359)
  20. y_bucket = bucket * ones(359,1)
  21.  
  22. addpoints(h, x, y)
  23. addpoints(h, x_bucket, y_bucket)
  24. drawnow
  25. clearpoints(h)
  26.  
  27. end
Add Comment
Please, Sign In to add comment