Cody

# Problem 624. Get the length of a given vector

Solution 1818231

Submitted on 16 May 2019 by Chirag Dudhat
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]; y_correct = 3; assert(isequal(VectorLength(x),y_correct))

2   Pass
x = 1:10; y_correct = 10; assert(isequal(VectorLength(x),y_correct))

3   Pass
x = rand(1,928); y_correct = 928; assert(isequal(VectorLength(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.6462547,"math_prob":0.9842989,"size":661,"snap":"2020-45-2020-50","text_gpt3_token_len":200,"char_repetition_ratio":0.13546424,"word_repetition_ratio":0.0,"special_character_ratio":0.3267776,"punctuation_ratio":0.17857143,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99097013,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-10-24T07:15:33Z\",\"WARC-Record-ID\":\"<urn:uuid:421ea84e-d9b7-4e41-8870-73054b9d3189>\",\"Content-Length\":\"79231\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:64581580-e8dc-432c-97ac-57a54f37e293>\",\"WARC-Concurrent-To\":\"<urn:uuid:69acc16f-393b-4ec7-bbd0-80835331fb82>\",\"WARC-IP-Address\":\"23.5.129.95\",\"WARC-Target-URI\":\"https://it.mathworks.com/matlabcentral/cody/problems/624-get-the-length-of-a-given-vector/solutions/1818231\",\"WARC-Payload-Digest\":\"sha1:P2B7DEYYCLKISD6OUSWQVFYIGWGEQKGE\",\"WARC-Block-Digest\":\"sha1:NLLWSYOXTLBKS2JHLC7THTMCAFY3E7B6\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-45/CC-MAIN-2020-45_segments_1603107882102.31_warc_CC-MAIN-20201024051926-20201024081926-00573.warc.gz\"}"}