Getting "not a valid name" error
18 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Brian Tremaine
le 2 Déc 2023
Réponse apportée : Walter Roberson
le 2 Déc 2023
I am using the WaterTank Matlab example code and adapting it to my own specific problem. I'm getting an error that "WaterTank.slx" is not a valid MATLAB function. Sorry, I don't understand what the problem is.
My working folder is WaterTank, and contains files WaterTank.mlx and WaterTank.slx. At line 65 I am trying to select the variant 'ADRC' and get the error.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1558724/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1558729/image.png)
0 commentaires
Réponse acceptée
Walter Roberson
le 2 Déc 2023
mdl = 'WaterTank' ;
Leave out the extension in that context
0 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!