Cody

# Problem 3. Find the sum of all the numbers of the input vector

Solution 1587275

Submitted on 19 Jul 2018 by mohaimin rahman
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; y_correct = 1; assert(isequal(vecsum(x),y_correct))

y = 1

2   Pass
x = [1 2 3 5]; y_correct = 11; assert(isequal(vecsum(x),y_correct))

y = 11

3   Pass
x = [1 2 3 5]; y_correct = 11; assert(isequal(vecsum(x),y_correct))

y = 11

4   Pass
x = 1:100; y_correct = 5050; assert(isequal(vecsum(x),y_correct))

y = 5050
{"ft_lang_label":"__label__en","ft_lang_prob":0.5055252,"math_prob":0.9996229,"size":570,"snap":"2019-43-2019-47","text_gpt3_token_len":201,"char_repetition_ratio":0.16254418,"word_repetition_ratio":0.22222222,"special_character_ratio":0.40701753,"punctuation_ratio":0.14049587,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9993098,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-11-15T20:00:11Z\",\"WARC-Record-ID\":\"<urn:uuid:cd87b8b7-04bf-4021-84bc-bb12b7d62ece>\",\"Content-Length\":\"73422\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:69229cf7-535e-4c45-9fd3-21440b27854d>\",\"WARC-Concurrent-To\":\"<urn:uuid:fbb1654d-4775-4b0c-994c-32ce9fbe03f8>\",\"WARC-IP-Address\":\"23.50.228.199\",\"WARC-Target-URI\":\"https://kr.mathworks.com/matlabcentral/cody/problems/3-find-the-sum-of-all-the-numbers-of-the-input-vector/solutions/1587275\",\"WARC-Payload-Digest\":\"sha1:SKE2QU7V7RG2SNCTQ3RIZPXQYFDKOY5A\",\"WARC-Block-Digest\":\"sha1:TEMIJBQFZOFGUPIYC2GCEXAPTJG45JTQ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-47/CC-MAIN-2019-47_segments_1573496668712.57_warc_CC-MAIN-20191115195132-20191115223132-00539.warc.gz\"}"}