In Online MATLAB Simscape models will not run and give error

32 ビュー (過去 30 日間)
Igor
Igor 2025 年 8 月 13 日
回答済み: Arushi 2025 年 8 月 20 日
Hi,
In Online MATLAB (https://matlab.mathworks.com/) I am trying to run a Simscape example model, and I get an error when running:
Method 'update' is not defined for class 'SSC.SimscapeCC' or is removed from MATLAB's search path.
But when looking at Add-Ons, it shows Simscape installed.
Best regards
  5 件のコメント
Igor
Igor 2025 年 8 月 14 日
The answer is actually "no", but when I look at the add-ons, it says Simscape is installed.
Torsten
Torsten 2025 年 8 月 14 日
編集済み: Torsten 2025 年 8 月 14 日
You need a valid licence to use "Simscape" - it's not enough that it is installed.
The licence associated with your Email-address does not seem to cover "Simscape". Otherwise you should be able to use "Simscape" under MATLAB Online.
Without a licence or a free trial, it's only possible to use Simscape Onramp:

サインインしてコメントする。

回答 (1 件)

Arushi
Arushi 2025 年 8 月 20 日
Hi Igor,
Sometimes testing of specific features can be turned off. You can try enabling them with a toggle using the license function. For example, for Simscape you can do:
license('test','simscape','enable')
license('test','simscape')
if the second command returns 1, the feature is enabled. For more details, have look at the documentation here:
If it still returns 0, then it might be that the toolbox is not installed in your MATLAB Online session. In that case, you can try installing it from the Add-On Explorer:
  • Go to the Home tab > Add-Ons > Get Add-Ons
  • Search for the toolbox you need
  • Click on it and install
I hope this helps, thanks!

カテゴリ

Help Center および File ExchangeFoundation and Custom Domains についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by