The question I'm working on asks me to find the entry of maximum ration between two vectors v1, v2. I want the actual ratio and the entry number of the vector.
I took v= abs(v1-v2).
Then max(v) gives me what the largest difference is between the entries of these vectors. How do I get it to give me the ratio? Also, how can I ask matlab to tell me the entry number of max(v) in vector v?
Any help would be very appreciated. Thank you in advance.