Filter löschen
Filter löschen

Getting "not a valid name" error

18 Ansichten (letzte 30 Tage)
Brian Tremaine
Brian Tremaine am 2 Dez. 2023
Beantwortet: Walter Roberson am 2 Dez. 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.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 2 Dez. 2023
mdl = 'WaterTank' ;
Leave out the extension in that context

Weitere Antworten (0)

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Produkte


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by