• Shuffle
Toggle On
Toggle Off
• Alphabetize
Toggle On
Toggle Off
• Front First
Toggle On
Toggle Off
• Both Sides
Toggle On
Toggle Off
Toggle On
Toggle Off
Front

### How to study your flashcards.

Right/Left arrow keys: Navigate between flashcards.right arrow keyleft arrow key

Up/Down arrow keys: Flip the card between the front and back.down keyup key

H key: Show hint (3rd side).h key

A key: Read text to speech.a key

Play button

Play button

Progress

1/15

Click to flip

### 15 Cards in this Set

• Front
• Back
 else cannot _______ the else is only needed if__________ check a condition…knows last condition is false there are statements to execute is condition is false. ___________ key will interrupt (stop) a MatLab code that is running. Holding the key while you press the Use_______to realign statements in code >Text>Smart Indent When do you use Nested ifs? Used when you need to check a second condition only if the first condition is true. When do you use else ifs? Used when you need to check a second condition if the first condition is false. logical “1” = true “0” = false & AND x > 4.0 & x < 8.0 ( 4.0<=x<8.0) returns a logical “1” when both conditions are true and “0” otherwise logical “1” = true “0” = false | OR x < 6.0 | x > 12.0 returns a logical “1” if either or both conditions are true and “0” otherwise logical “1” = true “0” = false ~ NOT ~ ( x > 0.0) returns a logical “1” when the condition evaluates as false and a “0” when the condition evaluates as true We used stacked ifs: To determine the units on the temperature entered first To determine if TF = TC. but To check if TF is greater than, equal to, or less than TC we can’t just add more stacked ifs, we need to use a nested or elseif structure. Using elseif: if abs(Tcomp-TC)<=0.05 fprintf(‘TF=TC’) elseif Tcomp>TC fprintf(‘TF>TC’) else fprintf(‘TF