Is there a way to generate an SLX model from a Matlab script? I have a custom Simulink library and the models I want to automatically generate vary in their design and I'm trying to figure out the easiest way to script their generation. I already have a script that generates text code for an MDL format model and it works fairly well but now I'm looking to update to the SLX format and have an easier codebase for users to both develop and understand. My text generation is rather difficult because it pieces text together and is hardcoded for a specific Simulink release format. Thanks!