Hi so I have a matrix (51×22) of values and a name matirx that line up with each of those vaules with a state name (51×1). I need to find the state with the greatest values. You are told to find the sum of each row and somehow make matlab find the one with the greatest sum and identify that row with name of the state in the other matrix that has names of states in it. ex. A={1 2 3; 4 5 6; 5 7 8] B=[albama; Calif; Iowa]
since the third row has the most sum, I need matlab to first find the sum of each row in A and determine which has the greatest sum and then Identify the name of the state with the identy matrix B. THank you
Best Answer