Want to Plot a multi line graph in Matlab
Show older comments
I want to plot a graph like this. How can I implement it in Matlab ?
Accepted Answer
More Answers (1)
thiyagarajan n
on 8 Oct 2022
Edited: thiyagarajan n
on 8 Oct 2022
0 votes
x = [......]; % use values of observations
y1 = [.....]; % use values of observations or form expression
y2 = [.....]; % use values of observations or form expression
y3 = [.....]; % use values of observations or form expression
figure(1);
plot(x, y1, x, y2, x, y3);
xlabel('Frequency Slots --->');
ylabel('Spectral Efficiency');
legend('Average User rate','Fair Spectrum Sharing','No Spectrum Sharing');
Categories
Find more on Line Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
