User friendly edit boxes allow for the complete input of motion types and their properties, along with the characteristics of the cam and its follower. What follows are diagrams for displacement, velocity and acceleration, as well as an animated simulation of the cam profile and the follower.
I put my code here because it helped me personally understand more about cams and their governing equations. So I filled the code with comments in hopes of providing help for both mechanics students and new programmers.
Husam Aldahiyat (2021). Cam Simulator (https://www.mathworks.com/matlabcentral/fileexchange/22571-cam-simulator), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!