Access RF Budget Power Out vs Frequency Array
Afficher commentaires plus anciens
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 commentaire
Réponse acceptée
Plus de réponses (1)
UDAYA PEDDIRAJU
le 28 Sep 2023
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
Catégories
En savoir plus sur Visualization and Data Export dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!