Hi Noura,
This can be done using the Linear System Analyzer. Refer the examples in following documentation that will help you get started:
Note: You will require Control Systems Toolbox in order to use Linear System Analyzer.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!