This question already has an answer here:
Why is https://math.stackexchange.com/questions/1075994/converting-mathematica-code-to-matlab-code/1076034#1076034 off topic? We have tags for Matlab, Math Software, and Mathematica.
I see people ask how to make a matrix in Matlab which has no real math behind it. Those post stay open but get down voted. The main point is they stay open.