Hi, guys I have a problem here on how should I add a condition for variable "A" as shown in the image highlighted in red under equation 4 (eq4). The condition I would like to set is that "A" equals "(b/m)p'[t] + (k/m)(p[t]-0.5) when "(p[t] >= l/2)" and "A" equals to zero when "(p[t] < l/2)" .
Any advise or changes I should make to the coding ? I truly appreciate your help here. Cheers.
Best regards, Aaron Aw`