We have moved to @ Placement Papers Hub !! Visit our new website here for more..

Matlab Performing Arithmetic Operations - Addition, Subtraction, Multiplication and Exponentiation.

>> B=[1 2; 4 7]                     >> C=[5 1;2 6]

   B =                                               C=
     1     2                                          5     1
     4     7                                          2     6

 *Performing Arithmetic Operation
 >> B+C

ans =
     6     3
     6    13

 *Performing Subtraction Operation
>> B-C

ans =
    -4     1
     2     1

 *Performing Multiplication Operation
>> B*C

ans =
     9    13
    34    46

 *Performing Multiplication Operation element to element

>> B.*C

ans =
     5     2
     8    42

>> G=[1 1 1; 2 2 2; 3 3 3]

G =

     1     1     1
     2     2     2
     3     3     3

 *Performing Exponentiation Operation

>> F=expm(G)

F =

   68.0715   67.0715   67.0715
  134.1429  135.1429  134.1429
  201.2144  201.2144  202.2144