Question

1. Create classic animation effect using Matlab software with two examples and highlight the commands used in Matlab programm
0 0
Add a comment Improve this question Transcribed image text
Answer #1

The MATLAB predefined function ‘comet’ can be used to display 2D animated comet plot and the function ‘comet3’ is used to display 3D animated comet plot.

Example 1:

The following is the MATLAB code that displays the animation of a ‘tan’ function using MATLAB predefined function comet:

clear all

close all

x=-2*pi:0.01:2*pi; %define vector x

y=tan(x);          %define tan as a function of x

comet(x,y)         %use comet function to display animation of function

The animation plot is shown below.

bMeW7ZJWxCgAAAAASUVORK5CYII=

Example 2:

The following is the MATLAB code that displays the 3D animation using MATLAB predefined function comet3:

clear all

close all

x=-4*pi:0.01:4*pi;   %define vector x

y=sin(x);            %define vector y

z=cos(x);            %define vector y

comet3(x,y,z)        %use comet3 function to display 3D animation

The animation plot is shown below.

j4g4IDusjgIroixkWWyJw+sf2QZHuQcj3F2eful+

Add a comment
Know the answer?
Add Answer to:
1. Create classic animation effect using Matlab software with two examples and highlight the commands used...
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