MATLAB: I have two 5 by 5 matrices which consist of X and Y coordinates. How to a create a table with coordinates of each point

coordinatesMATLABmatricesmatrixtable

Imagine A has the X coordinates of 25 points and B has the Y coordinates of the same points. How do I create a table that looks like this?
PS: The numbers are imaginary and just for the show!

Best Answer

t = array2table(YourMatrixHere, 'VariableNames', {'Points', 'X', 'Y'});