Project 2 - Speed Control of a Direct Current (DC) motor
The following script file is used for finding gain parameters namely Kd and Kp.

Then following Simulink model is used which illustrates the speed control model for the DC motor

Finally, the workspace variables are fetched and plotted using the below script.

The result of reference speed vs actual speed is obtained and shown below

Further all the related files are attached in rar file.