But, I want to add the same blocks of a model1 in my new model 2. The model 1 may vary.
So, I am looking for a method that enable me to extract for exemple the inputs of the model 1 ( can vary so I don't know what it contains) and put them in a new model
Could you go a little bit more into details? I don't understand what exactly you wanna do. And especiqlly, where now Matlab comes into play...
There's lots of potential concept - from linking to model input ports to the workspace, from simulation those models (more than one) from the Matlab command line via sim(), to building submodels from a model and copy it to the other... But for a better hint I need to understand the true problem :-)
Currently, I am doing an internship in the field of Model-Based Requirements Engineering . I have to make the step of validating of the requirements modeled on Simulink automatic. I need to extract the names of blocks, Inputs, ... (the information) from the model where I the requirements where modeled in order to create the validation model.
I have already started coding the program on Matlab. There is the add_block function to add blocks from the Simulink library. Now I want to add the inputs of the model of requirements in the validation model.
PS: I don't know how many inputs does the requirements' model have.