Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
You sholud start to learn Simulink which is part of Matlab. I think that there is an example in Simulink help for simillar topic.
Transfer function you have to develop according to control systems theory after that you will be able to complete your Simulink model.