This is up to your input matrix, as mentioned in manual, row of X is obs, column of x is variable then coeff(:, 1) is the first PC (in decreasing component variance), and so on. scores are then in row manner again, scores(1, :) is the score for the first obs vector, and so on.