Create 'siteviewer' object without displaying it?
古いコメントを表示
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 件のコメント
You could specify its Position so that it's off-screen, e.g.:
% get monitor position(s)
pos = get(groot(),'MonitorPositions');
% index of right-most monitor
[~,idx] = max(pos(:,1));
% a location beyond the upper-right corner of the right-most monitor
viewer_pos = [pos(idx,[1,2])+pos(idx,[3,4])+1, 0, 0];
% create siteviewer in that location
viewer = siteviewer('Position',viewer_pos);
回答 (1 件)
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.
カテゴリ
ヘルプ センター および File Exchange で Propagation and Channel Models についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!