Ask about certain example in MATLAB documentation.

I want to do this example regarding indoor positioning by MATLAB:
I have two issues:
1- when I copied the written commands, it gives error. For example, if I copy just the first two commands in the page provided in the above link:
mapFileName = "office.stl";
viewer = siteviewer("SceneModel",mapFileName,"Transparency",0.25);
This error appears:
Error using siteviewer (line 229)
'SceneModel' is not a recognized parameter. For a list of valid name-value pair
arguments, see the documentation for this function.
Error in Indoor_testing_MALTABpage (line 5)
viewer = siteviewer("SceneModel",mapFileName,"Transparency",0.25);
2- In the above link, MATLAB allows copying the command that runs the whole example, but when I copy the command:
openExample('wlan/PositioningWith80211azFingerprintingAndDeepLearningExample')
This error appears:
Error using findExample (line 35)
Example "PositioningWith80211azFingerprintingAndDeepLearningExample" not found
in "C:\Program Files\MATLAB\R2020b\examples\wlan\examples.xml".
Error in openExample (line 30)
metadata = findExample(exampleId);
Please help, if possible.

 采纳的回答

That example was designed for MATLAB R2021b. Some of the options used do not exist in previous versions of MATLAB.
This example was first introduced in R2021a. This is why the MATLAB command to open the example is failing in your version of MATLAB. The example did not yet exist.
If possible, consider updating your MATLAB version to R2021b.

5 个评论

Thanks Cris.
I'd like also to ask about something more, whether MATALB has varity of built-in .stl files like indoor .stl attached with the link above.
Thanks.
It does, and for the same reason. They are used in various demos and examples provided in the documentation.
Could you please send me a link for that, Regards.
There is no link to send. However, if you navigate to your matlab root folder (use matlabroot to determine) in your file explorer, you can search for *.stl. The results will vary based on what toolboxes you have installed.
On my system, it found 208 files spread across the pde, robotics, physmod, antenna, and control toolboxes. I don't have the WLAN or Communications toolboxes installed.
I'm installing now MATLAB 2021b.
Thanks for your respected time, thanks Cris.

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 WLAN Toolbox 的更多信息

产品

版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by