How can i obtain this graph using code?

댓글 수: 7

Geoff Hayes
Geoff Hayes 2020년 2월 27일
Barry Allen! Do you have an equation for the maximum throughput ofr spectrum sensing? Presumably the inputs are duration and Pa.
Barry Allen
Barry Allen 2020년 2월 28일
I have worked hard about this and cant even know how to obtain the simulations with the equations.I even changed some of the equations into codes but still no result.I had attached the paper for your reference if possible please let me know about how to proceed in it.
Barry Allen
Barry Allen 2020년 2월 28일
The equation is
and I will attach the paper here
Geoff Hayes
Geoff Hayes 2020년 2월 28일
Barry - you may want to contact the author of the paper or discuss this with your professor. I'm assuming that this is for a school project (?).
Barry Allen
Barry Allen 2020년 2월 29일
Yes it is for college project and my professor dont have a lot of knowledge in that field .How can i contact the author?
Geoff Hayes
Geoff Hayes 2020년 3월 2일
From the paper: Corresponding author: Zhiqun Song (zhiqunsy@163.com)
Barry Allen
Barry Allen 2020년 3월 2일
I have tried but no response:(

댓글을 달려면 로그인하십시오.

답변 (1개)

TJ Plummer
TJ Plummer 2020년 3월 17일

1 개 추천

In this case, it would be fastest to use your ruler to get some of the X and Y points for the three Pa curves. Store them in Matlab vectors. Then run an smoothing operation if needed.
x = [0.1 0.4 0.7 0.9]; % you can add more points if needed
% my eyballing the plot without ruller
Pa5m = [0.25 1.5 1.25 0.25];
Pa10m = [0.6 2 1.5 0.25];
Pa20m = [1.2 2.5 1.75 0.25];
xq = 0.1:0.05:0.9;
Pa5m = interp1(x,Pa5m,xq,'spline');
Pa10m = interp1(x,Pa10m,xq,'spline');
Pa20m = interp1(x,Pa20m,xq,'spline');
The rest of the plotting is straight forward once you have them in vector form. There are also other options for interpolation method that may work better for your problem.

카테고리

질문:

2020년 2월 27일

답변:

2020년 3월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by