Ortix

Untitled

Sep 29th, 2012
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.37 KB | None | 0 0
  1. %% Windkracht ophalen
  2. lat = lat+90;
  3. for i = 1:(length(lon))
  4.     %YOLO!
  5.     if round(lat(i)) == 0
  6.         lat(i) = 1;
  7.     end
  8.     f(i) = A(round(lon(i)),round(lat(i)));
  9.     i = i+1;
  10. end
  11. % Check NaN values and remove
  12. for i = 1:length(f)
  13.     if isnan(f(i))
  14.         f(i) = (f(i-1)+f(i+1))/2;
  15.     end
  16. end
  17.  
  18. output.force = f;
  19. output.velocity = mean(0.836.*f.^(3/2));
Advertisement
Add Comment
Please, Sign In to add comment