Access RF Budget Power Out vs Frequency Array
이전 댓글 표시
How do I access/use the frequency-dependet values that I can plot using
rfplot(rfobj,rfpara)
For example, like Pout in https://www.mathworks.com/help/rf/ug/visualizing-rf-budget-analysis-over-bandwidth.html.
I want to be able to run statistics like average and variance on the gain and power.
채택된 답변
추가 답변 (1개)
UDAYA PEDDIRAJU
2023년 9월 28일
Hi Temmeand,
I understand that you want to access the data plotted by the “rfplot” function. You can access this data through the "plot" object, which contains the properties of the data plotted.
Here’s an example:
h = rfplot(rfobj, rfparam);
data = h.YData;
In this code, "h" is a handle to the plot object created by “rfplot”. The “YData” property of "h" contains the y-coordinates of the data points in the plot, which should correspond to the frequency-dependent values you’re interested in.
You can then use these values to calculate statistics like average and variance. For example:
avg = mean(data);
variance = var(data);
I hope this example helps you understand the concept.
Thank you,
Uday
카테고리
도움말 센터 및 File Exchange에서 Visualization and Data Export에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!