2.a) Show the result of the following flowchart step by step in a table:
Step | a | b | i | j |
-----|-----|-----|-----|-----|
1 | 5 | 8 | - | - |
2 | 15 | 8 | - | - |
3 | 15 | 8 | - | 4 |
4 | 15 | 8 | - | 3 |
5 | 15 | 38 | - | 3 |
6 | 15 | 38 | - | 18 |
7 | 10 | 38 | - | 18 |
8 | 10 | -28 | - | 18 |
9 | 10 | -28 | - | 22 |
10 | -20 | -28 | - | 22 |
11 | -20 | -28 | - | 3 |
b) Please write the MATLAB code for this flowchart:
```matlab
a = 5;
b = 8;
i = 0;
j = 0;
a = 3 * a + b + i;
j = 4;
j = 3;
j = -2;
j = 18;
j = 22;
j = 3;
b = 2 * b + j;
a = a - 5;
b = b - 3;
b = a - b - i;
CStop;
```
Note: The code provided assumes that `i` is a variable that is not used in the calculations. If `i` is meant to be a constant, please replace `i` with the appropriate value in the code.