Thanks a lot, I have finished it by refer the question and Steve Miller's work Four Bar Linkage Optimization in Simscape
It is solved by insert a "Spline" block, good solution to solve the problem.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/188597/image.png)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!