Simulate an analog clock

Assignment Help MATLAB Programming
Reference no: EM131891058

Question 1. For this assignment, write a MATLAB program called clock_animaton.m. Upon execution the program is to simulate an analog clock as partly demonstrated in class for the case of the second hand (I say partially because I made use of 100 locations tick marks in my example while a true clock has only 60 distinct locations along the perimeter of the clock).

The clock should have a second, minute and hour hand of different colors and of different length (second hand bigger than minute hand and minute hand bigger than the one depicting the hour).

The simulation doesn't have to keep track of actual time but it ought to display/animate the coordinated mechanism of an analog clock. Moreover, I would like you to place markings (using text()) that indicate 3, 6, 9 and 12 o'clock positions at the appropriate locations along the perimeter of the drawn circle.

Your simulation must run properly (show proper mechanism of a clock) for at least a couple of hours if not indefinitely (you may make use of a while loop if you opt for the second option ... do help on it to get insight on how to make use of it).

Question 2. This portion of the assignment in a natural extension of part (1).

Create a program called plot time.m. Here instead of animating the mechanism, you are to prompt the user for "a time" using input().

Once the user has supplied the second, minute and hour values, you are to provide a plot of an analog clock that shows the specified time by the user.

Reference no: EM131891058

Questions Cloud

What is the expected dividend per share : The dividend is expected to grow to 5% for the next 3 years and then 10% a year thereafter. What is the expected dividend per share for each of the next 5 years
Implement radixsort algorithm to base for sorting integers : Implement the radixsort algorithm to base 216 for sorting 32-bit unsigned integers given in a linked list. The structure of the linked list is struct listnode.
What is the profitability index : A project that costs $100,000 today has a single forecasted cash flow of $130,000 in two years. The discount rate is 16%. What is the profitability index?
What the standard should be moving forward : Your paper should not include politics, but only facts related to the subject matter. Discuss the differences of the two policies and what the standard should.
Simulate an analog clock : simulate an analog clock as partly demonstrated in class for the case of the second hand - Create a program called plot
What is the required return for the market : If the risk-free rate is 10.2 percent and the market risk premium is 4.4 percent, what is the required return for the market?
Determine the labor rate variance : Harmelon manufactures specialty electronic circuitry through a photoelectronic process. Determine the labor rate variance
Percentage-of-completion method of accounting : Windsor Construction Company uses the percentage-of-completion method of accounting. In 2016, Windsor began work on a contract
What maturity level did klm appear : What might explain an item that is seemingly quite unrelated to IT (costs per kilometer flown) decreased as a result of the new CIO structure?

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