Dear,
I'm currently working on a project where my team and I have to let a magnetic ball hover under/above a magnet and for doing so we would have to implement a pd controller in order to create the feedback in the system. However, the formula in my lecture notes states that the transfer function of a pd controller is H(s)=k*(1+(Td*N)/(N/s+Td)) with Td the time constant of the differentiator and k the gain. However in Matlab the compensator formula is given by H(s)=P(1+P/D*N/(1+N/s)). I think that D/P is proportional to Td and that P is proportional to K but I'm not sure about it. Any help would be welcome.