How to you plot these graphs

I need to write graph codes for each of the graphs on the images. They are from a pdf tittled Relaying Protocols for Wireless Energy Harvesting and Information Processing. if someone can help me with writting the matlab code and graph codes i will appreciate

回答(1 个)

Sam Chak
Sam Chak 2022-4-4
编辑:Sam Chak 2022-4-4
Appreciation is insufficient. You have to do your due diligence, by clearly knowing what you want to do through reading the article, and then identifying what mathematical equations are needed to plot the graphs in the images.
Having that, you can request for help on how to plot those graphs using MATLAB. You don't instruct and expect people to Google search the PDF for you, download for you, and then do the reading for you, mainly because some of us cannot access the academic journal database, or they don't have the free time to read the full paper.
The least expectation from you is to show the relevant math equations in the image form.
Here is the basic example to show you how to plot:
x = -2*pi:0.01:2*pi;
y1 = sin(x);
y2 = cos(x);
figure(1)
plot(x, y1, x, y2)
axis([min(x) max(x) min(y1) max(y1)])
xlabel('x')

类别

帮助中心File Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by