I have been doing the simscape onramp course and it keeps giving me the error "unrecognisedfunction or variable". How do I solve this?

Unrecognized function or variable 'simmechanics.sli.internal.register_datatypes'.

6 commentaires

Could you give more details about which task or section of the course you are getting this error in? Sharing your code would be helpful as well.
The error comes from the first task. When I press submit, it gives me the error I stated above.
Unrecognized function or variable 'simmechanics.sli.internal.register_datatypes'.
And yet I havent even edited the model.
Which version of MATLAB are you using? You can check this by typing in >> ver at the MATLAB command line.
I launched the course using their browser matlab, and that should be 2023a.
I gor the same error while learning onramp course,
i am using it on web
I gor the same error

Connectez-vous pour commenter.

Réponses (1)

A workaround for this issue is to specify the path directly. This can be done by executing the following command in the MATLAB Online command window(As you are using the online version):
addpath(fullfile(matlabroot,'toolbox/physmod/sm/sli/m'))

Catégories

En savoir plus sur Simscape dans Centre d'aide et File Exchange

Déplacé(e) :

DGM
le 29 Déc 2023

Community Treasure Hunt

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

Start Hunting!

Translated by