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

  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.

  Create a loop for each parameter in the magnitude vector

Create a loop for each parameter in the magnitude vector and You can do this with another for loop, but that is a bad way to do it. MATLAB is a matrix based programming language and all of its commands are written to work on matrices.

  Compare filter with that given by matlab function bilinear

Compare your filter with that given by the Matlab function ‘bilinear' for the same conditions. Manually design a second order digital filter, with the damping ratio given in the table.

  Compute the eigenvalues and eigenvectors of the matrix

Compute the eigenvalues and eigenvectors of the matrix

  Provide a plot where the end-result is plotted

Provide a plot where the end-result is plotted against sample indices into one subplot and another one where the end-result is plotted against time in seconds.

  Design a filter that meets the required specifications

Design a filter that meets the above required specifications. Then try to design a better filter, according to the bonus specifications. Additional points will be added to that filter score, as indicated in the bonus specifications section.

  Write a system program for bus arbiter

The bus arbiter is a device used in multi-master system with shared bus. It is used to allocate the control of the shared system bus to one master at a time depending priority.

  Finds the value of a using a numerical method

Finds the value of a using a numerical method

  Parse and load data files and deal with missing data

To write code to- parse and load data files and deal with missing data,- implement a more complex program involving multiple function calls. - output nicely formatted results and figures summarizing your analyses.

  Obtain the uncoded ber performance of bpsk modulation

Obtain the uncoded BER performance of BPSK modulation over AWGN and Rayleigh fading channels through computer simulation - Select a suitable range of Eb/NO so that you obtain the BER in the range of (approximately) 10-1 to 10-6 .

  Show the frequency of the components

Show the frequency of the components, explain how you derived them from the FFT, and compare them to what is expected from the standard DTMF frequency pair allocation.

  Calculate the geometric mean of numbers

Write a program to calculate the geometric mean of numbers entered by a user. The program should prompt the user to enter numbers and continue to accept the numbers until the user enters 999.

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