## I keep getting the error message that vectors must be the same length in the plot command

### MATLAB Dummy (view profile)

on 5 Apr 2019
Latest activity Answered by Jos (10584)

### Jos (10584) (view profile)

on 5 Apr 2019
fc = (f1 + f2)/2;
r = 2e10;
Bw = 2e8;
Tp = 5e-7;
t2 = 0:r*21:20;
t3=-10:r*10+1:10;
t4= 0:r*31:30;
W = Bw;
w = hamming(t2);
h = w.*sinc(W*t3);
hbpf = h.*cos(2*pi*fc.*t2);
figure;
plot(t4,x.*hbpf);
grid on

R2019a
{"ft_lang_label":"__label__en","ft_lang_prob":0.95370424,"math_prob":0.9101302,"size":329,"snap":"2019-26-2019-30","text_gpt3_token_len":75,"char_repetition_ratio":0.10769231,"word_repetition_ratio":0.0,"special_character_ratio":0.22796352,"punctuation_ratio":0.1369863,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.996446,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-07-16T17:40:54Z\",\"WARC-Record-ID\":\"<urn:uuid:d6a974ce-df27-4635-a6bb-c65513e81d71>\",\"Content-Length\":\"86344\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:d4a616a9-69bd-48c1-9f36-3cbd4cd002dc>\",\"WARC-Concurrent-To\":\"<urn:uuid:d23ba28f-2f82-47c6-afa8-6961208ee316>\",\"WARC-IP-Address\":\"104.110.193.39\",\"WARC-Target-URI\":\"https://in.mathworks.com/matlabcentral/answers/454655-i-keep-getting-the-error-message-that-vectors-must-be-the-same-length-in-the-plot-command\",\"WARC-Payload-Digest\":\"sha1:A5DK6TAFYS7O4V4ACUZKIBMGIMJ5ILC4\",\"WARC-Block-Digest\":\"sha1:SEB2SLM6APUK7LE6LLDB5TEVV3DXG4IY\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-30/CC-MAIN-2019-30_segments_1563195524679.39_warc_CC-MAIN-20190716160315-20190716182315-00052.warc.gz\"}"}