The if-else Statement

In this screencast:

  • Example of volume of a water tank
  • Writing a function with an if-else statement to calculate water volume for different water heights

Download m-file: watervol.m