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
  • Animation: Investigating the effect of h k a and b on the graph of an ellipse...

    Animation: Investigating the effect of h k a and b on the graph of an ellipse Go past the animation and review examples 1, 2 and 3. 1) Use the animation mentioned earlier on page 910 to create two graphs of two ellipses using the instructions below. (3 pts each). a. Create an ellipse so that the major axis is horizontal and the center is not the origin. State the center and vertices (as points) along with the distance to...

  • UOR 8ver the commands and examples in the Matlab Overview documents available on Blackboard Matla...

    number 2 using mathlab UOR 8ver the commands and examples in the Matlab Overview documents available on Blackboard Matlab folder, and then complete the assignment. You should turn in your entire command window text format, please) cither printed or by email. I need to be able to see both your com Use Matlab to perform as many calculations as possible, including determining whether an operation Make your calculations as efficient as possible. Look for ways to avoid entering Matlab results...

  • Provide two examples of conditional commands that can be used inside bash scripts:

    Provide two examples of conditional commands that can be used inside bash scripts:

  • Create a two-page website by using HTML commands (without using CSS or javascript).

    Create a two-page website by using HTML commands (without using CSS or javascript).

  • PLEASE USE MATLAB COMMANDS THANK YOU Use Matlab to graph the functions f(x) = 3xsin(3x) and...

    PLEASE USE MATLAB COMMANDS THANK YOU Use Matlab to graph the functions f(x) = 3xsin(3x) and g(x)= 12 - 2x² so that you can read off the point(s) of intersection (if any), accurate up to two decimal places. 1) Write down the Matlab command(s) you used to create the x-vector. 2) Write down the Matlab command(s) you used to produce the vectors containing the f- and g-function values. 3) Write down the Matlab command(s) you used to plot the graphs....

  • 1. the commands you used to create the directories and files in Linux and Windows; 2....

    1. the commands you used to create the directories and files in Linux and Windows; 2. the commands you used to determine default permissions in Linux and Windows; 3. the commands you used to change permissions on your files in Linux and Windows; 4. a paragraph about how directories and file permissions work and what was the same or different between Windows and Linux.

  • Finally, we now mention MATLAB commands that can be used to help in the partial fraction...

    Finally, we now mention MATLAB commands that can be used to help in the partial fraction decomposition of rational functions. This can be used when we need to express the Laplace transform as a partial fraction and then using a table and uniqueness property of the Laplace transform derive the time function. First, lookup how the commands collect and expand work. Now, read up on the documentation of command [x,p,k]=residue (b, a) to answer the following questions. Lab Exercise 1....

  • Matlab Exercise #1 Syntax of MATLAB The Problem-Solving Tool for Engineers, High-Performance Nu...

    Matlab Exercise #1 Syntax of MATLAB The Problem-Solving Tool for Engineers, High-Performance Numeric Computation and Very Powerful, Very Easy to Use MATLAB Mathematicians, and Scientists Visualization Software Matlab Prompt: ">>" or"o" General Syntax of Matlab [output1, output2, ..]command_name(input1, input2, ...) » % (everything to its right on that line is ignored and is not executed) >> diary filename » diary off % close the diary >>save filename >> save filename xyz %(save variables x, y, and z to file) >>save...

  • 1.) when using the standard MATLAB commands, or the design equations, to design an FIR filter...

    1.) when using the standard MATLAB commands, or the design equations, to design an FIR filter Why is it a good idea to check if the design, meets requirements 2 answer specificly.

  • What matlab command, or combination of commands (using 25 characters or less), could be used to...

    What matlab command, or combination of commands (using 25 characters or less), could be used to create the following matrix? 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 1 0 1 1 1 0 1 1 1 0 1 1 1 0 1 1 1 0...

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