Matlab code for Slider Crank Mechanism

hello, I am trying to write a matlab code for a slider crank mechanism with an offset using newton raphson method for finding displacement,velocity and acceleration plots. please let me know the matlab code. Attached is the picture . Assume all required inputs. given theta2=30 deg. Include the driving constraint. Thank you

4 Comments

What have you tried? Can share some attempts?
Please use attachments button for long code
11Capture.PNG
have you found the solution?
Something is missing from the code? I got the error: "Cq_p_l" function does not exist.

Sign in to comment.

Answers (1)

darova
darova on 29 Sep 2019
What i achieved
gif_animation.gif
And here are formulas i used to reach such success:
- pythagorean theorem

Categories

Asked:

on 27 Sep 2019

Commented:

on 17 Feb 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!