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

조회 수: 15 (최근 30일)
Fil_Bk
Fil_Bk 2024년 11월 28일
답변: Oliver Jaehrig 2024년 12월 2일
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
Gaurav
Gaurav 2024년 12월 1일
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?
Walter Roberson
Walter Roberson 2024년 12월 1일
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.

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

답변 (2개)

Oliver Jaehrig
Oliver Jaehrig 2024년 12월 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:

Hitesh
Hitesh 2024년 12월 2일
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.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by