Skip to content

Instantly share code, notes, and snippets.

@mariohm1311
Created September 30, 2018 17:33
Show Gist options
  • Save mariohm1311/fb565bbe10fa9194365c0271640a1917 to your computer and use it in GitHub Desktop.
Save mariohm1311/fb565bbe10fa9194365c0271640a1917 to your computer and use it in GitHub Desktop.
speed = [0, 1, 2, 5, 2, 1];
altitude = [100, 90, 70, 30, 20, 10];
% speed >=2 = [False, False, True, True, True, False]
% altitude(speed >= 2) = [70, 30, 20]
altitude_over_2_v = altitude(speed >= 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment