plot in matlab app design siteviewer

I am creating a propagationData in order to plot it in the siteviewer, in order to see the calculated radar coverage. I can easily do this when I'm not in app design. Is it possible to make this plot?
this is the part of the code that does this. It is not producing any results because it does not understand that it should plot in the siteviewer.
tabelData =table(Latitude,Longitude,Power);
Den_potenc = propagationData(tabelData);
plot(Den_potenc,'MarkerSize',5,"LegendTitle",legendTitle);

답변 (1개)

Cris LaPierre
Cris LaPierre 2023년 5월 23일
편집: Cris LaPierre 2023년 5월 23일

1 개 추천

In App Designer, you need to designate the target axes. I think the equivalent code should look something like this (untested).
plot(app.UIAxaes,Den_potenc,'MarkerSize',5);
lgd = legend(app.UIAxes);
title(lgd,'legendTitle')

댓글 수: 1

Bruno
Bruno 2023년 5월 23일
Thanks a lot for the feedback.
I managed to make it work, and it was not necessary to specify the UIAxaes, that is, the problem was with my data.
I used the raw data to test.
plot(pdata{1},'MarkerSize',5,"LegendTitle",legendTitle);

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Propagation and Channel Models에 대해 자세히 알아보기

질문:

2023년 5월 23일

댓글:

2023년 5월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by