Cody

# Problem 2549. length of a vector

Solution 3460488

Submitted on 28 Oct 2020 at 21:20 by Akrem Hadji
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))

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
{"ft_lang_label":"__label__en","ft_lang_prob":0.66265404,"math_prob":0.85551804,"size":570,"snap":"2020-45-2020-50","text_gpt3_token_len":156,"char_repetition_ratio":0.12897527,"word_repetition_ratio":0.0,"special_character_ratio":0.28947368,"punctuation_ratio":0.106796116,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9809003,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-11-24T09:51:17Z\",\"WARC-Record-ID\":\"<urn:uuid:8ff17262-06c0-427e-85a0-6dad1e9754a8>\",\"Content-Length\":\"78431\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:ea98dadb-5e25-4e6f-9625-82cf2ba44794>\",\"WARC-Concurrent-To\":\"<urn:uuid:fa57d23d-6aa7-4c36-9ab8-200c704d1207>\",\"WARC-IP-Address\":\"96.7.70.236\",\"WARC-Target-URI\":\"https://nl.mathworks.com/matlabcentral/cody/problems/2549-length-of-a-vector/solutions/3460488\",\"WARC-Payload-Digest\":\"sha1:AMLQMZBS5UC43NCPY2W3G64QWKXRU6WO\",\"WARC-Block-Digest\":\"sha1:TMUTKTPT2VODDBNYQ5NJB5DCOS5FBSKC\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-50/CC-MAIN-2020-50_segments_1606141176049.8_warc_CC-MAIN-20201124082900-20201124112900-00594.warc.gz\"}"}