Cody

# Problem 1837. Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]

Solution 1336785

Submitted on 12 Nov 2017 by Daniel Meier
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
x = [2 5 2 5 12 2 4 13]; y_correct = 8; assert(isequal(maxindex(x),y_correct))

ans = 8

2   Pass
x = [2 4 3 5 5 3]; y_correct = 4; assert(isequal(maxindex(x),y_correct))

ans = 4
{"ft_lang_label":"__label__en","ft_lang_prob":0.6325025,"math_prob":0.99340373,"size":510,"snap":"2019-43-2019-47","text_gpt3_token_len":163,"char_repetition_ratio":0.13241106,"word_repetition_ratio":0.0,"special_character_ratio":0.3529412,"punctuation_ratio":0.104761906,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9692924,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-11-16T21:15:20Z\",\"WARC-Record-ID\":\"<urn:uuid:0b94971e-d830-417c-a94b-70e6d710e5de>\",\"Content-Length\":\"71129\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:9d3394e3-900c-46a4-ae71-c89b2f97368f>\",\"WARC-Concurrent-To\":\"<urn:uuid:60a5a5e9-58f5-4d8f-a1e9-d50d26f48aca>\",\"WARC-IP-Address\":\"23.50.228.199\",\"WARC-Target-URI\":\"https://uk.mathworks.com/matlabcentral/cody/problems/1837-find-the-index-of-the-largest-value-in-any-vector-x-4-3-4-5-9-12-0-4-5/solutions/1336785\",\"WARC-Payload-Digest\":\"sha1:HFU6VRZ2TUEV422BCU4PQOUH5P5J43EC\",\"WARC-Block-Digest\":\"sha1:GGZEPR4UU37SBFKE4ITO35453KGHBXXK\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-47/CC-MAIN-2019-47_segments_1573496668765.35_warc_CC-MAIN-20191116204950-20191116232950-00532.warc.gz\"}"}