MATLAB BASICS

Variables No need for types. i.e., All variables are created with double precision unless specified and they are matrices. After these statements, the variables are 1×1 matrices with double precision…