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 中查找有关 RF Budget Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!