I would highly recommend to discretize your problem, for two reasons:
You are using Matlab which is most suitable for a discrete approach anyways
More complex load cases will make analytical continuous modelling difficult. This is why these kind of problems are typically solved numerically
So now the question how can we discretly regard this problem? For ...