Resulting Model Workspace when using Simulink InputObject
Hello,
I am currently playing around in using the model workspace in Simulink and overwriting some of the variables via the Simulink InputObject. But I am facing an issue: How do I know what I simulated in the end. E.g. I would like to put the value of certain parameters in the figures I programatically generate. Or I simply would like to store the parameter set alongside the simulation results.
So the question is: How can I retrieve the resulting state of the model workspace, when using a Simulink InputObject when simulating with the sim command?
I mean I could make sure, that the InputObject provides values for all the variables in the model workspace. This way I could retrieve the state from the InputObject or the source, which feeds the InputObject. But then I would loose the flexibility to relay on default values stored in the model workspace itself.
Thank you for your help in advance.Hello,
I am currently playing around in using the model workspace in Simulink and overwriting some of the variables via the Simulink InputObject. But I am facing an issue: How do I know what I simulated in the end. E.g. I would like to put the value of certain parameters in the figures I programatically generate. Or I simply would like to store the parameter set alongside the simulation results.
So the question is: How can I retrieve the resulting state of the model workspace, when using a Simulink InputObject when simulating with the sim command?
I mean I could make sure, that the InputObject provides values for all the variables in the model workspace. This way I could retrieve the state from the InputObject or the source, which feeds the InputObject. But then I would loose the flexibility to relay on default values stored in the model workspace itself.
Thank you for your help in advance. Hello,
I am currently playing around in using the model workspace in Simulink and overwriting some of the variables via the Simulink InputObject. But I am facing an issue: How do I know what I simulated in the end. E.g. I would like to put the value of certain parameters in the figures I programatically generate. Or I simply would like to store the parameter set alongside the simulation results.
So the question is: How can I retrieve the resulting state of the model workspace, when using a Simulink InputObject when simulating with the sim command?
I mean I could make sure, that the InputObject provides values for all the variables in the model workspace. This way I could retrieve the state from the InputObject or the source, which feeds the InputObject. But then I would loose the flexibility to relay on default values stored in the model workspace itself.
Thank you for your help in advance. simulink, workspace MATLAB Answers — New Questions