how to make both graphs x and y axis identical?

2 ビュー (過去 30 日間)
Dipsikha Roy
Dipsikha Roy 2021 年 2 月 13 日
編集済み: Dipsikha Roy 2021 年 2 月 26 日
Here in graph x axis is 200,400,600 and y axis has been ranging from 0 to 3 while other graph x axis is like 20,40,60.. and y axis range is ranging from 0 to 8.How to make both axis equal?Please help me?
  1 件のコメント
Dipsikha Roy
Dipsikha Roy 2021 年 2 月 15 日
recvd_serial_data = reshape(fft_data, 1,(16*8));
qam_demodulated_data = qamdemod(recvd_serial_data,M);
figure(17),
subplot(2,1,1),
x=1:no_of_data_bits;
recvd_serial_data = reshape(fft_data, 1,(16*8));
qam_demodulated_data = qamdemod(recvd_serial_data,M);
figure(17),
subplot(2,1,1),
x=1:no_of_data_bits;
stem(x*(1/Fm),data_source);
grid on;xlabel('Data Points');ylabel('Amplitude');
title('Original Data')
subplot (2,1,2),
num_sent = length(qam_demodulated_data );
lie_about_the_time = linspace(1, length(qam_demodulated_data), num_sent);
stairs(lie_about_the_time, qam_demodulated_data)
I used thid code,but this is not something I want.

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2021 年 2 月 14 日
Currently you have something like
stairs(received_data)
Change that to
num_sent = length(original_data);
lie_about_the_time = linspace(1, length(recieved_data), num_sent);
stairs(lie_about_the_time, received_data)
  12 件のコメント
Dipsikha Roy
Dipsikha Roy 2021 年 2 月 16 日
Sir one help please
S2P = reshape(qam_modulated_data, no_of_data_bits/M,M);
here instead of passing qam_modulated_data I want to pass udata1 .Because I want to add Cyclic prefix only on even frequency suppressed data not every constallation point of qam.So how can I achieve that,instead of qam_modulated_data i want to pass udata1,
Dipsikha Roy
Dipsikha Roy 2021 年 2 月 26 日
編集済み: Dipsikha Roy 2021 年 2 月 26 日
How to calculate ber vs snr of ofdm in above code,can you please guide?

サインインしてコメントする。

その他の回答 (1 件)

randerss simil
randerss simil 2021 年 2 月 13 日
編集済み: randerss simil 2021 年 2 月 13 日
subplot(211)
t = linspace(0,3,1200)
stem(1:100:1200,3*cos(t(1:100:1200)))
xlim([1 1200])
xticks([0 200 400 600 800 1000 1200])
xticklabels({'0','200','400','600','800','1000','1200'})
subplot(212)
t = linspace(0,8,1200)
stem(1:100:1200,8*sin(t(1:100:1200)))
xlim([1 1200])
xticks([0 200 400 600 800 1000 1200])
xticklabels({'0','200','400','600','800','1000','1200'})
Try some thing like above
  1 件のコメント
Dipsikha Roy
Dipsikha Roy 2021 年 2 月 14 日
Thanks for ur help sir,but it is not working.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangePropagation and Channel Models についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by