how to solve the below code for graph plot

9 次查看(过去 30 天)
could anyone help me how to plot the graph for the following code as i am struggling from morning but unable to get the result so far.
Bmax=2000000; %maximum available bandwidth for OFDMA
noise=1e-9; %fixed noise power is assumed
p_fix=0.01;%fixed transmit power
N_UE=[ 1:10 1:20 1:30 1:40 1:50];no of users
N_SC=[ 1:60 1:70 1:80 1:90 1:100];no of subcarriers
throughput =((Bmax.*log(1+((p_fix).*C))./noise))
i want to plot the graph such that it should have 1:10 on xaxis and 1:60 on yaxis with respect to throughput on one graph, similarly it should be have 1:20 on xaxis and 1:70 on y axis with respect to throughput on other graph and so on till 1:50 on x axis and 1:100 on y axis.

回答(1 个)

Walter Roberson
Walter Roberson 2017-12-5
No, your throughput is a scalar, so it is meaningless to plot it on xaxis and yaxis of varying sizes.

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by