We now have enough understanding of MATLAB’s tools so we can start writing more complex programs. Dividing a larger program into smaller parts makes development of the program simple. The subtasks in a program are usually implemented as functions. These user defined functions work the same way as MATLAB’s built-in functions.