Introduction - If you have any usage issues, please Google them yourself
Use the least square method to identify the parameters of the permanent magnet synchronous motor, build a permanent magnet synchronous motor model in simulink, and then use the s function to write the least square method.