%In Matlab  is used to disable a line after the symbol %
%Coding for adding two numbers

a=5;
b=6;
c=a+b;  % or a+b and it not contain ; and display method
display(c);


%Coding for representing matrix

%Row matrix
t=0:1:10;
%The line indicates that the first column of t contains 0 and each next column increases with 1
% and thus the last column contain 10. i,e t=0 1 2 3 4 5 6 7 8 9 10

% 3*3 matrix
mtrx=[1 2 3;4 5 6;7 8 9];
display(mtrx);% you can use only mtrx without ; to display mtrx

% 3*4 Matrix
mtrx1=[1 2 3 4;5 6 7 8; 9 10 11 12];
matrx1

% 4*2 Matrix
mtrx2=[1 2; 3 4; 5 6 ; 7 8] % Here ; is not use to display mtrx2


% transport of matrix mtrx is

mtrx'; % i,e  '  represent transport of a matrix


% Now mtrx contains
mtrx
       =  1 4 7
      2 5 8
      3 6 9

% In Matlab the method reshape is used to chsnge the shape of a matrix. Example

remtrx=reshape(mtrx,1,9);


% now remtrx is a row matrix i,e, remtrx=1 2 3 4 5 6 7 8 9