필터 지우기
필터 지우기

Create 'siteviewer' object without displaying it?

조회 수: 5 (최근 30일)
Guillem
Guillem 2024년 6월 6일
편집: R 2024년 6월 17일
Hello,
Is there a way to create a 'siteviewer' object without actually displaying it? I know there's the option of running the command siteviewer('Visible','off'), but this command does display the object, even if it closes it inmediataely after. Is there some way to just create the object and have no display of it at all?
Thanks in advance,
Guillem
  댓글 수: 3
Voss
Voss 2024년 6월 6일
이동: Voss 2024년 6월 7일
That assumes groot().Units is 'pixels' (which is the default). If it's not 'pixels', you'd have to set it to 'pixels' before getting MonitorPositions and restore it to whatever it was afterwards.
Guillem
Guillem 2024년 6월 7일
이동: Voss 2024년 6월 7일
Hey, thanks for your answer. Unfortunately it doesn't solve my problem, the thing is that I'm running this through batch in a server, and the server doesn't have display functionality so whenever I run the 'siteviewer' command I get an error. I need the properties of the siteviewer object, however, to run the raytrace function properly...

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

답변 (1개)

R
R 2024년 6월 17일
편집: R 2024년 6월 17일
To create a 'siteviewer' object without displaying it, you can turn on the Hidden property of 'siteviewer'.
hiddenViewer = siteviewer("Basemap","openstreetmap",...
"Buildings","manhattan.osm","Hidden",true);
I have verified the above code in MATLAB R2023b as well as in MATLAB Online.
Since both Visible and Hidden are undocumented properties of siteviewer, I am unsure of their peoper usage. However, please note that you will not be able to 'reveal' the above hiddenViewer, i.e. it is only usable for computation. If you want to see the site aftewards, you will need to construct a new, completely visible siteviewer.

카테고리

Help CenterFile Exchange에서 Propagation and Channel Models에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by