Source: https://courses.grainger.illinois.edu/NPRE435/fa2021/notes/ch2_part3_intro_matlab_2021.pdf