Hello. I have to simulate a system of 2 differential equations using the State Space block. Problem is that one of the variables, a mass m, has to come after 0,2s from start of simulation. I've tried using a Step with "To Workspace" block but it outputs the variable as a timeseries and gives an error. So I switched it to an If case with a clock and the error is different now :D - namely:
Simulation (Elapsed: 0.506 sec) ===
Error:Invalid setting in 'LB3/State-Space' for parameter 'A'.
Error evaluating parameter 'A' in 'LB3/State-Space'
Dimensions of arrays being concatenated are not consistent..
Here's a photo to better understand what's going on.Also in the subsystem is just a PID controller with a saturation block - nothing special. And simulation is 1 second long.
Any help is much appreciated.