MATLAB: “Matrix Dimensions must agree”

matrix

It says the dimensions is not agreeing even though I put in in elementwise format?
Thanks for the help!

Best Answer

t is used to build r, but it is not the same length as phi.