Cody

# Problem 605. Whether the input is vector?

Solution 1914186

Submitted on 28 Aug 2019 by hao
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 1]; y_correct = 1; assert(isequal(checkvector(x),y_correct))

2   Pass
x = [1 2 7; 6 3 1]; y_correct = 0; assert(isequal(checkvector(x),y_correct))

3   Pass
x = [1;2;0]; y_correct = 1; assert(isequal(checkvector(x),y_correct))
{"ft_lang_label":"__label__en","ft_lang_prob":0.5321528,"math_prob":0.9923709,"size":581,"snap":"2020-34-2020-40","text_gpt3_token_len":194,"char_repetition_ratio":0.14038128,"word_repetition_ratio":0.043010753,"special_character_ratio":0.3425129,"punctuation_ratio":0.15,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9816634,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-09-27T10:29:32Z\",\"WARC-Record-ID\":\"<urn:uuid:834878a6-4202-4827-b30a-3375497166d7>\",\"Content-Length\":\"76576\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:cc81e656-778e-4a2f-abfd-00521860b693>\",\"WARC-Concurrent-To\":\"<urn:uuid:b57f972a-a8a8-4b66-b8ef-447eee0882ae>\",\"WARC-IP-Address\":\"23.223.252.57\",\"WARC-Target-URI\":\"https://it.mathworks.com/matlabcentral/cody/problems/605-whether-the-input-is-vector/solutions/1914186\",\"WARC-Payload-Digest\":\"sha1:EZYRCHX5BHUDVOPL6GUORWGISYXXFQBI\",\"WARC-Block-Digest\":\"sha1:M4SUCGP2K5RZIFG3VMVBUMAS6TQGLYUL\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-40/CC-MAIN-2020-40_segments_1600400274441.60_warc_CC-MAIN-20200927085848-20200927115848-00660.warc.gz\"}"}