Cody

# Problem 2549. length of a vector

Solution 1227671

Submitted on 9 Jul 2017 by Nirav Ambaliya
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 = 2; assert(isequal(length_of_vector(x),y_correct))

2   Pass
x=[1 2 3]; y_correct = 6; assert(isequal(length_of_vector(x),y_correct))
{"ft_lang_label":"__label__en","ft_lang_prob":0.53680676,"math_prob":0.94889754,"size":436,"snap":"2019-43-2019-47","text_gpt3_token_len":132,"char_repetition_ratio":0.1574074,"word_repetition_ratio":0.0,"special_character_ratio":0.3440367,"punctuation_ratio":0.1978022,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9776288,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-11-12T11:15:45Z\",\"WARC-Record-ID\":\"<urn:uuid:41e28db5-04c3-438a-88f7-2d0609778c30>\",\"Content-Length\":\"69851\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:54060e9a-b9f3-4352-9f7a-e47e14431f94>\",\"WARC-Concurrent-To\":\"<urn:uuid:29358145-29b2-47c9-9328-5e51004e648a>\",\"WARC-IP-Address\":\"104.110.193.39\",\"WARC-Target-URI\":\"https://nl.mathworks.com/matlabcentral/cody/problems/2549-length-of-a-vector/solutions/1227671\",\"WARC-Payload-Digest\":\"sha1:EOH25JHB6FEPBBC5IZRJP7BYS5JWN5NG\",\"WARC-Block-Digest\":\"sha1:CQTDPUDU7F7B5VJYVOWY5SJJ7IZWD4JD\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-47/CC-MAIN-2019-47_segments_1573496665521.72_warc_CC-MAIN-20191112101343-20191112125343-00035.warc.gz\"}"}