Create an animation of a square

Assignment Help MATLAB Programming
Reference no: EM13160990

You will have to create an animation of a square according to the directions below. Create a square with a side length of 3 with the square centered at (5,5). Translate this square along a cosine wave on the interval [0, 6*pi]. The center of the square should be on the cosine wave. Use the variables t and trajectory for your independent ( x ) and dependent ( y ) values, respectively. ( Hint : the first location of the square's center is (0,1)) Your square should rotate at constant angular velocity from 0 to 10 revolutions from its starting point. It should rotate counter-clockwise ( Hint: in the first frame, your square will have rotated 0 degrees, and in the final frame, your square will have completed 10 rotations. ) Your animation should have 500 frames. Use the variable square to represent the x and y coordinates of the square. The x coordinates and y coordinates should be represented in the first and second rows of squar 

Reference no: EM13160990

Questions Cloud

Economic and social impoverishment of the maasai people : Land loss has been the most important factor responsible for the ongoing economic and social impoverishment of the Maasai people. The Maasai believe that restoring their land and livestock economy is the only sustainable solution to elevate poverty a..
O create a variable called nickname which has a nickname : 1.  Show the steps to create a variable called NICKNAME which has a nickname for you in it; make this variable available to the environment
What are yearly duration of daylight for quito : what are yearly duration of daylight for quito, ecuador(on equator), and for Mazatlan, mexico(on tropic of cancer)?
File format would you choose : What file format would you choose for the following tasks: 1. A cartoon strip 2. A 3D model for use on a multimedia presentation on the web
Create an animation of a square : create an animation of a square according to the directions below. Create a square with a side length of 3 with the square centered at (5,5). Translate this square along a cosine wave on the interval [0, 6*pi].
What is the annual cost - depreciation and interest costs : A used car costs $ 120 000. car can be sold for $ 10 000 after six years. What is the annual cost (depreciation and interest costs) if the discount rate is 9%?
What ''are the differences between a policy, a standard : What 'are the differences between a policy, a standard, and a practice? What are the three types of security policies? Where would each be used? What type of policy would be needed to guide use of the Web? E-mail? Office equipment for personal use?
Dis-assemble each of the following : Dis-assemble each of the following MIPS R2000 object code into source code instructions. Use register names, such as $t2, instead of numbers, such as $20.
Provide a analysis of companys overall financial position : Indicate whether your calculations compare positively or negatively to the National Standards. Provide a possible reason for either scenario. In addition to your National Standards summary, provide a brief analysis of the company's overall financi..

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Determine the optimal linear predictor

Determine the optimal linear predictor for a given order N and DPCM simulation and write a graphical user interface that has least the following functions

  Construct the shear force and bending moment diagrams

Write the algorithm and draw the flowchart for each problem

  Z-transform in matlab

Z-Transform in MATLAB, Sketch the z-plane pole-zero plot and determine the stability status for the following digital system. Determine the h(n) in MatLab.

  Write a function in matlab

write a function in MATLAB

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Explore the design of a recursive digital filter

In this simulation we are going to explore the design of a recursive digital filter which might be usedvin a digital radio station. The sampling frequency used in digital radio (DAB) is either 48 kHz or 24 kHz and for the purposes of this simulation,

  Develop a well-structured function

Develop a well-structured function to compute v as a function of t. Then use this function to generate a table of v versus t for t = -5 to 50 at increments of 0.5.

  Demonstrate the effect of zero-padding

Write a programs in Matlab to demonstrate the effect of zero-padding and filtering the DC-component in the frequency domain.

  Give the gradient operator in paraboloidal coordinates

Given that the le data.txt contains only real numbers seperated by white space, write down a sequence of maple commands that will read the data into a maple list and then plot a histogram of the elements in the list.

  Create a matrix of 5x6

Prepare a matrix of 5x6. with identical columns and rows ranging from 200 to 1000 in equal increments

  Impact of zigbee on telecommunication systems

Report on Impact of zigbee on telecommunication systems

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd