how to make iterations and to plot the graph

could anybody tell me how to run 10 iterations for the output(t,r) and plot the graph.
N_UE=[ 5 10 15 20 25];
N_SC=[ 60 70 80 90 100];
for t= 1 :length(N_UE)
for r = 1:length(N_SC)
for it = 1:10
overall_throughput = sum(sum((Bmax.*log(1+((p_fix).*C))./noise))) {C=rand(N_UE, N_SC)} output(t,r)=overall_throughput;
end
end
end

1 Comment

Code is not correct.....variables are not defined. If it is you want to plot a matrix...have a look on plot , surf, imagesc and pcolor.

Answers (0)

This question is closed.

Tags

Asked:

on 6 Dec 2017

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!