Question

ASAP NEEDS TO BE ANSWERED! Animate the arbitrary rotation (attitude change) of a pyramid by MATLAB....

ASAP NEEDS TO BE ANSWERED!

Animate the arbitrary rotation (attitude change) of a pyramid by MATLAB.

MATLAB DOWNLOAD: https://www.mathworks.com/programs/trials/trial_request.html

You need to use the DCM kinematic equation (DCM differential equation)

This is the code example given:

figure
x = linspace(0,4*pi,2000);

for k = 1:length(x)
grid on
plot3(0,0,0);
hold on;
axis([0 4*pi -1 1 -1 1]);
view(45,45);
plot3([0 x(k)],[0 sin(x(k))],[0 cos(x(k))]);
hold off;
pause(0.01);
end

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

ame_ gae 8oud View (4,45 pause 0, 0l) enThe 8iven Code: 0.S o-S -os O-Sぶg迅 Vie。 ( 4.45) o Sin(M 3otk) Pause (ooi). enà olp upcaked 0 05 to

Add a comment
Know the answer?
Add Answer to:
ASAP NEEDS TO BE ANSWERED! Animate the arbitrary rotation (attitude change) of a pyramid by MATLAB....
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
  • please help me with this MATLAB CODE and explain to me what each line does and...

    please help me with this MATLAB CODE and explain to me what each line does and what is used for? leave your comments as words, not as pictures. ..................................................................................................................................................................... clear all; close all; % For a script file, you better start with clear all and close all                        % However, for a fucntion, you better NOT to start                        % with them %% End of cell mode example %% Plot function t = 0:0.1:5; x1 = sin(2*5*t); x2 = cos(3*7*t);...

  • I DESPERATELY NEED HELP WITH THIS DIFFERENTIAL EQUATIONS MATLAB ASSIGNMENT IM SUPPOSED TO BE LEARNING BUT...

    I DESPERATELY NEED HELP WITH THIS DIFFERENTIAL EQUATIONS MATLAB ASSIGNMENT IM SUPPOSED TO BE LEARNING BUT WE HAVE A SUB AND HE DIDN'T TEACH IT! ITS EULER AND IMPROVED EULER IN MATLAB! HERE IS THE LINK FOR THE IMAGE FILE THAT SHOWS THE FULL INSTRUCTIONS FOR THE CODE. https://imgur.com/a/gjmypLs Also, here is my code so far that I borrowed form an old assignment but the data is all wrong and the application of the code is slightly different so either...

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