Answer
See solution
Work Step by Step
Use commands three times:
$A=\operatorname{rand}(4,4)$
$B=\operatorname{rand}(4,4)$
$(A+B)^{\prime}-A^{\prime}-B^{\prime}-$ as you can see it is allways zero, so $(A+B)^{T}=A^{T}+B^{T}$
$(A \cdot B)^{\prime}-B^{\prime} \cdot A^{\prime}-$ also zero, so $(A B)^{T}=B^{T} A^{T}$