openExampl​e('px4/PX4​HITLSimula​tionFixedW​ingPlantSi​mulinkExam​ple')not working

I am trying to use the example which should open with:
openExample('px4/PX4HITLSimulationFixedWingPlantSimulinkExample')
But i'm getting the error:
Error in matlab.internal.examples.copyFromWeb (line 28)
result = websave(target, url, options);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in matlab.internal.examples.findExamplesXml (line 32)
found = matlab.internal.examples.copyFromWeb(component, '', 'examples.xml', examplesXml, false);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in findExample (line 14)
examplesXml = matlab.internal.examples.findExamplesXml(component,arg);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in openExample (line 32)
metadata = findExample(exampleId);
^^^^^^^^^^^^^^^^^^^^^^
I suspect the problem not actually being mine since i can run withuth problems other similar examples.
How can i get sure about?

3 Comments

There would have been a couple of lines before that in the traceback, showing what websave() thought the problem was. At the moment we do not know whether websave() is complaining that it cannot write to the target(), or if websave() is complaining about the URL being wrong. Perhaps the message was
Error using websave (line 107)
The server returned the status 404 with message "Not Found" in response to the request to URL https://www.mathworks.com/help/releases/R2024b/exampledata/px4/examples.xml.
And indeed, https://www.mathworks.com/help/releases/R2024b/exampledata/px4 does not exist for some reason.
Is there a work around for this like manually downloading the example or some other way because even i want to run the examples for px4?
The file https://www.mathworks.com/help/releases/R2024a/exampledata/px4/examples.xml (one release earlier) exists. If you can run the example in R2024a instead of R2024b then it should work.

Sign in to comment.

Answers (2)

This is a known bug and the development team works on a fix. Maybe check again on Wednesday or Thursday.
Otherwise install the offline documentation in the meantime:
Hi Fil_Bk,
I too encountered the same error while executing the example.The workaround that worked for me was switching to MATLAB R2024a. I was able to execute the example successfully using MATLAB R2024a.

Categories

Products

Release

R2024b

Asked:

on 28 Nov 2024

Answered:

on 2 Dec 2024

Community Treasure Hunt

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

Start Hunting!