Ask about certain example in MATLAB documentation.

13 views (last 30 days)
Nader Rihan
Nader Rihan on 16 Nov 2021
Commented: Nader Rihan on 17 Nov 2021
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.

Accepted Answer

Cris LaPierre
Cris LaPierre on 16 Nov 2021
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 Comments
Nader Rihan
Nader Rihan on 17 Nov 2021
I'm installing now MATLAB 2021b.
Thanks for your respected time, thanks Cris.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!