command expalantion
Objective: 1. A=[1,2,3,4,5] From the above command, we know that all the elements are seperated from each other by commas and are enclosed in square bracket, it is called as Row vector .when the above-given row vector is executed in command window then it shows A= 1 2 3 4 2. B=[1;2;3;4;5]…