How to extract and input arrays from simscape to plot them
In short if i have simple model like this mass-spring system and i want to input an array of spring constant values in the spring constant block and see how the maximum distance change and graph that relation in order to determine something.
Of course thats just for illustration purposes my model on simscape is more complicated than that but i want to know how can i even begin doing something like this, to input an array of values into a simscape block and simulate as many times as array dimension without doing it manually.
I Already know how to extract the data from a signal using to workspace block but this specific task i cant figure it out.In short if i have simple model like this mass-spring system and i want to input an array of spring constant values in the spring constant block and see how the maximum distance change and graph that relation in order to determine something.
Of course thats just for illustration purposes my model on simscape is more complicated than that but i want to know how can i even begin doing something like this, to input an array of values into a simscape block and simulate as many times as array dimension without doing it manually.
I Already know how to extract the data from a signal using to workspace block but this specific task i cant figure it out. In short if i have simple model like this mass-spring system and i want to input an array of spring constant values in the spring constant block and see how the maximum distance change and graph that relation in order to determine something.
Of course thats just for illustration purposes my model on simscape is more complicated than that but i want to know how can i even begin doing something like this, to input an array of values into a simscape block and simulate as many times as array dimension without doing it manually.
I Already know how to extract the data from a signal using to workspace block but this specific task i cant figure it out. matlab, simscape MATLAB Answers — New Questions