Question

Use only matlab to do this nothing else. Please attach picture of all the steps. Thanks.

Use only matlab to do this nothing else. Please attach picture of all the steps. Thanks.
Use only matlab to do this nothing else. Please at
0 0
Add a comment Improve this question Transcribed image text
Answer #1

time = zeros(100,1);
for i=1:100   %time at intervals of 0.1 seconds
    time(i,1) = i*0.1;
end

velocity = zeros(100,1);
acceleration = zeros(100,1);
distance = zeros(100,1);
%calculating velocity at the intervals
for i=1:100
    t = time(i,1);
    velocity(i,1) = -0.011*t*t*t - 0.2*t*t + 2.4*t + 2;
    acceleration(i,1) = -0.033*t*t - 0.4*t + 2.4;
    distance(i,1) = 18 - 0.011*(t^4)*0.25 - (0.2*(t^3))/3 + 1.2*(t^2)+2*t;
end

figure
subplot(3,1,1);
plot(velocity(:,1), time(:,1));
xlabel('time (s)');
ylabel('velocity (m/s)');
subplot(3,1,2);
plot(acceleration(:,1), time(:,1));
xlabel('time (s)');
ylabel('acceleration (m/s2)');
subplot(3,1,3);
plot(distance(:,1), time(:,1));
xlabel('time (s)');
ylabel('distance (m)');

Add a comment
Know the answer?
Add Answer to:
Use only matlab to do this nothing else. Please attach picture of all the steps. Thanks.
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