System modelling using MATLAB