Just need the code for cam profile.. matlab A cam is expected to move a follower
ID: 3774512 • Letter: J
Question
Just need the code for cam profile.. matlab A cam is expected to move a follower as follows: falls from 20.5 mm to 15 mm in 60 degree, falls back to 0 mm in 90 degree, rises 20.5 mm in 110 degree, and dwells for the remainder (top dwell). Choose the piecewise function to satisfy the high speed cam requirements. Assume the cam rotates at 300 rpm. Then size the cam and choose appropriate roller radius to satisfy pressure angle less than 25 degree for the entire cycle. Also make sure the minimum radius of curvature of the cam pitch curve is at least 2 to 3 times as large as the radius of the roller follower. Write a MATLAB code to plot the s-v-a-j figures, the entire cycle's pressure angle, the entire cycle's radius of curvature, as well as the cam profile.Explanation / Answer
1 1 0 1 1 0 1 1 0 2 2 0 % 0 1 0 0 0 0 0 1 0 0 0 0 % 0 0 0 1 1 0 -> 0 0 0 3 3 0 % 0 0 1 1 1 0 0 0 3 3 3 0 % 1 0 0 0 1 0 4 0 0 0 3 0 labels = bwlabel(mask); % get the label at point (200, 200) id = labels(200, 200); % get the mask containing only the desired object man = (labels == id); imagesc(man); % save the image in PPM (portable pixel map) format imwrite(man, 'man.ppm');
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.