Contents

Setting up

We'll create a few matrices, do a few sums, then plot

clear all
a=magic(5);
b=a';

Multiplying

b*a
ans =

        1055         865         695         770         840
         865        1105         815         670         770
         695         815        1205         815         695
         770         670         815        1105         865
         840         770         695         865        1055

Now some maths

We'll try $\int(tan(x)+x^3)$

int('tan(x)+x^3')
plot(tan(a)+a.^3)
 
ans =
 
log(tan(x)^2 + 1)/2 + x^4/4