Cody

# Problem 1575. The sum of the numbers in the vector

Solution 1532912

Submitted on 18 May 2018 by J-G van der Toorn
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 = [1,2,3,4,5]; y_correct = sum(x); assert(isequal(sum_v(x),y_correct))

2   Pass
x = [-11,2,3,4,4]; y_correct = sum(x); assert(isequal(sum_v(x),y_correct))
{"ft_lang_label":"__label__en","ft_lang_prob":0.69279176,"math_prob":0.9952162,"size":444,"snap":"2020-10-2020-16","text_gpt3_token_len":139,"char_repetition_ratio":0.14545454,"word_repetition_ratio":0.031746034,"special_character_ratio":0.3445946,"punctuation_ratio":0.185567,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9954328,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-02-21T19:59:30Z\",\"WARC-Record-ID\":\"<urn:uuid:7520b9c1-0e5b-4c65-8819-998f2521bd56>\",\"Content-Length\":\"71949\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:7c473f3c-fdaf-4e89-8e8d-d265ad6f600c>\",\"WARC-Concurrent-To\":\"<urn:uuid:ef08d6d1-1996-4171-a199-6551278540e3>\",\"WARC-IP-Address\":\"104.117.0.182\",\"WARC-Target-URI\":\"https://fr.mathworks.com/matlabcentral/cody/problems/1575-the-sum-of-the-numbers-in-the-vector/solutions/1532912\",\"WARC-Payload-Digest\":\"sha1:AH32S25COXPBR2U4GGSSAQSVH7WKCRPO\",\"WARC-Block-Digest\":\"sha1:6J657BLBO2R44QHQWUUUVXCZJZPPMNVY\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-10/CC-MAIN-2020-10_segments_1581875145534.11_warc_CC-MAIN-20200221172509-20200221202509-00086.warc.gz\"}"}