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

  Finite difference method

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

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

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

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

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