how to solve the below code for graph plot

9 views (last 30 days)
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.

Answers (1)

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

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!