Extracting X and Y coordinates from "blakechart" function

5 ビュー (過去 30 日間)
Ivan
Ivan 2024 年 5 月 15 日
コメント済み: Adam Danz 2024 年 5 月 15 日
I would like to extract X and Y coordinates from blakechart function from RadarToolbox in order to compare two blakecharts in one figure where i can place them one over the other and compare the results.
For example when I use code bellow:
[vcp,vcpangles] = radarvcd(2800e6,170,20)
figure
[a] = blakechart(vcp,vcpangles)
and look at my variable "a" I can see that my desired variables are stored in "XData" and "YData"
Can anybody guide me how do I access them?
a =
Line (vcpLine-1) with properties:
Color: [0 0.4470 0.7410]
LineStyle: '-'
LineWidth: 0.5000
Marker: 'none'
MarkerSize: 6
MarkerFaceColor: 'none'
XData: [0.8543 0.8574 0.8605 0.8635 0.8664 0.8692 0.8719 0.8745 0.8770 0.8795 0.8818 0.8841 0.8862 0.8883 0.8902 0.8920 … ]
YData: [0 4.5188e-05 9.0697e-05 1.3652e-04 1.8263e-04 2.2903e-04 2.7569e-04 3.2261e-04 3.6977e-04 4.1715e-04 4.6473e-04 … ]
Show all properties

採用された回答

Pratik
Pratik 2024 年 5 月 15 日
Hi Ivan,
As per my understanding, "XData" and "YData" properties needs to be extracted from variable "a".
To do this dot notation can be used with the variable assigned to the object to access and change its properties.
Please refer to the code snippet below:
xData = a.XData;
yData = a.YData;
% Now xData and yData contain the X and Y coordinates respectively
Please refer to the following documentation for more information on working with objects:
I hope this helps!
  1 件のコメント
Adam Danz
Adam Danz 2024 年 5 月 15 日
Demo:
[vcp,vcpangles] = radarvcd(2800e6,170,20);
a = blakechart(vcp,vcpangles);
figure()
plot(a.XData, a.YData)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEnvironment and Clutter についてさらに検索

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by