Hi all,
I have 29 PDP plots, each plot corresponds to different receiving angle but one tx angle. I want a 3D plot for this case, Is it possible ? please help me with generic code.
Thanks in advance

댓글 수: 3

Jakob B. Nielsen
Jakob B. Nielsen 2020년 1월 23일
Do you mean like a 3D plot where your tx angle is plotted against two different receiving angles that you use to create for example your 1st and 2nd PDP plot? If everything has the same dimensions you could just
plot3(tx,t1,t2)
and see what happens. Or try to post some example data if it needs to be more specific.
Meghashree Srikantaiah Manjesh
Meghashree Srikantaiah Manjesh 2020년 1월 23일
PDP.PNG
I want to plot something like this. Instead of absolute time I want angle representation. ex: 0deg: 10deg:180deg.
tyler seudath
tyler seudath 2021년 2월 15일
Hi, did you ever got through in plotting the 3D power delay profile?

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

답변 (1개)

nathan welch
nathan welch 2020년 3월 6일

0 개 추천

Hopefully the following is helpful:
%just making up some data... you already have your own..
receivingAngle = 0:360;
txAngle = 10:10:180;
[receivingAngle, txAngle] = ndgrid(receivingAngle, txAngle);
PdP = exp(-(recievingAngle-txAngle).^2/100);
%notice that I have 361 receiving angles and 18 tx angles
%ndgrid replicates them with each other so they both become 361 by 18
%these are the same size (361,18) as my PdP data
%I can now use plot3
figure
plot3(receivingAngle, txAngle, PdP)
%formatting to make the plot look nice
grid on %helps visualise 3D plots
view(20,40); %give you the same angle as your plot
xlabel('receiving angle (deg)')
ylabel('tx angle (deg)')
zlabel('PDP')

카테고리

도움말 센터File Exchange에서 Graphics Performance에 대해 자세히 알아보기

댓글:

2021년 2월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by