I am doing a parameter study and want to create a script that can run these in sequence automatically. The problem I'm having is that some of the parameters are strings, representing different files with matlab-tables. The parameters which are numerical values are no problem, also the string values which are at the top-level can be set. But when I try to set a string parameter in a sub-model I get an error that the variable does not exists.
For example, I try to use the command:
basemodel.submodel.parameterName = "hello.mat"
Then I get the error:
Undeclared variable or command: basemodel.submodel.parameterName
Other parameters in that model which are numerical can be set without a problem however.
Is there some way to get around this?