필터 지우기
필터 지우기

Extracting X and Y coordinates from "blakechart" function

조회 수: 1 (최근 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 CenterFile Exchange에서 Environment and Clutter에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by