MATLAB: Converting a vector to matrix

matrix

I'm doing practice questions, and I am stuck. If the vector is x=[9,4,0,7] and i want to create a Matrix with 4 rows (the original vector, the recipricol, the factorial of the originals using my own code i already wrote, and the factorial using matlab's factorial function) while also putting ruler lines above and below the outputs. How the heck does one do this?

Best Answer

Not sure if this is what you are after, but it could be a starting point. Not sure what you mean by ruler lines above and below.
y=[x;1./x;factorial(x)];