Hello, i am new to matlab and simulink, my homework was to design a serial PID controller in simulink and tune it. After this I had to verify the output with a mathematical approach in matlab. There step input has a step time of 1 and a value of 2, there is also a process delay of .5 seconds.
The controller and the process functions and the simulink graph are the following:
While on Matlab i wrote this code expecting to get the same ouput:
A= (2.8*(1 + .39/s + .75*s))
The output I receive from matlab is the following:
The response from simulink peaks at 2.03, while the one from Matlab does at around 2.25. The settling times are also slightly different. Am I doing something wrong on Matlab when trying to replicate the same response?
I am sorry if any of this is confusing, as i mentioned before I am new to matlab and simulink. If any clarification is needed feel free to ask.
Thank you