Coding basics
1)Creates an array A with elements 1 to 5 written in a single row of a matrix(1x5).
2)It sort of creates a transpose of the matrix A.B matrix contains 5 rows and 1 column.
3)Invalid operation: The matrix dimensions are not compatible.We need to use a . to multiply the matrix element wise.
4)Creates a 5x5 matrix by matrix multiplication.
5)Displays the elements of matrix A from start value to the end value.
6)Displays the first two elements of matrix A.
7)The command can only take B(1:1,3).The 3 represents the column to display and 1:1 , means from element 1 to element 1 has to be displayed.Since the matrix has only 1 row it can only go from 1:1 and displays 3.
8)Displays the element as a function of B\'s length.The result here will be 3,Since B(length(B)-2)=(5-2)=3