Cody

# Problem 1511. Related Vectors

I have two vectors A & B. If the values in vector A is zero then the corresponding value in vector B should be zero.

Example:

A=[1 2 3 0 4 4];

B=[4 5 2 1 0 2];

Output:

A=[1 2 3 0 4 4];

B=[4 5 2 0 0 2];

Since the value zero appears in vector A at index 4, the 4th index value in vector B should be set to zero.

### Solution Stats

73.8% Correct | 26.2% Incorrect
Last Solution submitted on Dec 04, 2019
{"ft_lang_label":"__label__en","ft_lang_prob":0.69151574,"math_prob":0.97226465,"size":492,"snap":"2019-51-2020-05","text_gpt3_token_len":164,"char_repetition_ratio":0.1659836,"word_repetition_ratio":0.13592233,"special_character_ratio":0.35772356,"punctuation_ratio":0.09166667,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9777036,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-12-05T23:39:55Z\",\"WARC-Record-ID\":\"<urn:uuid:720dd65e-0c95-4c6c-bc1d-151782d846d0>\",\"Content-Length\":\"97282\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:dce9dda3-9f0f-49dc-830f-29a85a911da4>\",\"WARC-Concurrent-To\":\"<urn:uuid:98f347b5-abf6-4ad8-b7ee-6a0b6f25c46c>\",\"WARC-IP-Address\":\"104.110.193.39\",\"WARC-Target-URI\":\"https://www.mathworks.com/matlabcentral/cody/problems/1511-related-vectors\",\"WARC-Payload-Digest\":\"sha1:52DG4DU56L7HFG6KQ5FWPJAEJKYMFT27\",\"WARC-Block-Digest\":\"sha1:5M6BNOKHLH6562HNAFI7NK5M2YHQEC4L\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-51/CC-MAIN-2019-51_segments_1575540482284.9_warc_CC-MAIN-20191205213531-20191206001531-00530.warc.gz\"}"}