
Invalid argument "simscapeelectricalsps".
조회 수: 12 (최근 30일)
이전 댓글 표시
>> openExample('simscapeelectricalsps/SinglePhaseASMExample')
while I got an error shows as following

please tell me what is causing this problem? or which toolbox is lack?
And how can I find all the toolboxes needed for examples?
댓글 수: 3
채택된 답변
Walter Roberson
2023년 10월 7일
That structure of directory names for Simscape Electrical examples appears to be new as of R2023b.
That particular example is at https://www.mathworks.com/help/releases/R2023b/sps/ug/single-phase-asynchronous-machine.html
The R2023a version at https://www.mathworks.com/help/releases/R2023a/sps/ug/single-phase-asynchronous-machine.html instead uses the command
power_singlephaseASM
with no "openExample"
댓글 수: 16
Justine Joshua
2025년 3월 20일
Hi! How about this example?
openExample('simscapeelectricalsps/SmallScaleMicroGridExample')
May I also ask how we can find the list of examples for older MATLAB versions so we can just consult there? Thanks!
Walter Roberson
2025년 3월 20일
편집: Walter Roberson
2025년 3월 20일
The older command for that is
power_microgrid
There is no known list of examples for older versions of MATLAB.
What I do in cases such as these, is to google the final component of the openExample name on site:mathworks.com . That (mostly) gets me the current documentation page with the example. Then I extract some keywords from the title of that current page, and search for it in older versions of the Mathworks documentation, https://www.mathworks.com/help/doc-archives.html
추가 답변 (0개)
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!