Question

Create a MATLAB code to solve the following problem using the cycloidal displacement method discussed in the notes. Generate

0 0
Add a comment Improve this question Transcribed image text
Answer #1

SOLUTION:-

%Matlab code:-

clear

%CYCLOIDAL CAM

T=0:0.1:360; %define theta in degree

[~,n]=size(T); %find no of division of degree

t=4; %given time of rotation

S=2.5; % stroke length

To=60; % outstroke degree

Td1=120; % first dwell

Tr=30; % return stroke

w=2*pi/t; % angular velocity

% compute s,v,a using formula

for i=1:n

if T(i)<=To

s(i)=S*((T(i)/To)-sin(2*pi*T(i)/To)/(2*pi));

v(i)=(w*S/To)*(1-cos(2*pi*T(i)/To));

a(i)=2*pi*S*((w/To)^2)*sin(2*pi*T(i)/To);

elseif T(i)<(To+Td1)

s(i)=S;

v(i)=0;

a(i)=0;

elseif T(i)<(To+Td1+Tr)

c=To+Td1

s(i)=S*(((Tr-(T(i)-c))/Tr)-sin((Tr-(T(i)-c))*(2*pi/Tr))/(2*pi));

v(i)=(w*S/Tr)*(1-cos((Tr-(T(i)-c))*(2*pi/Tr)));

a(i)=2*pi*S*(w/To)^2*sin((Tr-(T(i)-c))*(2*pi/Tr));

else

s(i)=0;

v(i)=0;

a(i)=0;

end

end

%plot the required s, v, a

subplot(2,2,1)

plot(T,s)

subplot(2,2,2)

plot(T,v)

subplot(2,2,3)

plot(T,a)

%end of matlab code

%OUTPUT:-

Add a comment
Know the answer?
Add Answer to:
Create a MATLAB code to solve the following problem using the cycloidal displacement method discussed in...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT