All the calculation results in matlab are expressed in matrix form.
Clean up all
I = 1:5;
a= 1+i
b=2+i
Matrix is what matlab is best at, and it can be used as much as possible, very fast. Try to use loops as little as possible, which is not the strength of matlab.