I want to get the index of a specific row in a 2-D array. I have a 15*15 array (Q), and I want to get index of the maximum number of 2nd row. I wrote this code, but an error occurred:
y=Q(2,:);
x=max(y)
??? Subscript indices must either be real positive integers or logicals.