Biorhythm- matlab problem

Assignment Help MATLAB Programming
Reference no: EM13887507

Biorhythms were very popular in the 1960s. You can still ?nd many Web sites today that o?er to prepare personalized biorhythms, or that sell software to compute them. Biorhythms are based on the notion that three sinusoidal cycles in?uence our lives. The physical cycle has a period of 23 days, the emotional cycle has a period of 28 days, and the intellectual cycle has a period of 33 days. For any individual, the cycles are initialized at birth. Figure 1.12 is my biorhythm, which begins on August 17, 1939, plotted for an eight-week period centered around the date this is being written, October 19, 2003.

It shows that my intellectual power reached a peak yesterday, that my physical strength and emotional wellbeing will reach their peaks within 6 h of each other on the same day next week, and that all three cycles will be at their low point within a few days of each other early in November. The date and graphics functions in Matlab make the computation and dis- play of biorhythms particularly convenient. Dates are represented by their date number , which is the number of days since the zeroth day of a theoretical calendar year zero. The function datenum returns the date number for any given date and time. For example, datenum('Oct. 19, 2003') is 731873. The expression fix(now) returns the date number of the current date.

The following code segment is part of a program that plots a biorhythm for an eight-week period centered on the current date.
t0 = datenum(mybirthday);

313_Un.png

t1 = fix(now);
t = (t1-28):1:(t1+28);
y = 100*[sin(2*pi*(t-t0)/23)
sin(2*pi*(t-t0)/28) sin(2*pi*(t-t0)/33)];
plot(t,y)

1. Complete this program, using your own birthday, and the line, datetick, title, datestr, and legend functions. Your program should produce some- thing like Figure 1.12.

2. All three cycles started at zero when you were born. How long does it take until all three simultaneously return to that initial condition? How old were you, or will you be, on that date? Plot your biorhythm near that date. You should ?nd the lcm function helpful.

3. Is it possible for all three cycles to reach their maximum or minimum at exactly the same time?

Reference no: EM13887507

Questions Cloud

Approach for effective project management : The retrospective survey like other surveys offers a degree of information gathering as well as accountability. In this week's discussion consider how and when you would use this approach?
Linear temperature gradient and for simplicity : The properties of the glass are α = 1.5 × 10-6/?C, E = 70 GPa, υ = 0.30. [Hint: Assume a linear temperature gradient and for simplicity take the midpoint strain as zero.]
What factor outside control of external auditor affect audit : What factors outside the control of the external auditor affect audit quality? Why do users care about audit quality? Are there certain users who might care more about audit quality than others? Explain.
Fundamental to project risk management : Identify two metrics that are important for you when working on a project and substantiate your answer using a practical example and credible academic or scholarly sources.
Biorhythm- matlab problem : All three cycles started at zero when you were born. How long does it take until all three simultaneously return to that initial condition? How old were you, or will you be, on that date? Plot your biorhythm near that date. You should ?nd the lcm ..
Preemptive strikes : Preemptive Strikes We've read both sides of the issue of whether or not the United States is justified in conducting preemptive strikes. But really, this is about us making decisions for ourselves and justifying it (or not) to the rest of the world.
How much work does friction do between point a and b : At point A the wooden block below is traveling at 2.3 m/s. The coefficient of kinetic friction between the level table and the block is 0.22. How much work does friction do between point A and point B (just before it hits the floor)
Difference between euro fx futures and eurodollar futures? : What's the difference between Euro FX futures and Eurodollar futures?
Surface of a ceramic material : Rapid heating and cooling can cause cracks to start at the surface of a ceramic material. Sometimes the cracks meet the surface at 90? and sometimes at 45? to the surface.

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Find general solution of the ordinary differential equation

Find a general solution of the following ordinary differential equations and find the general solution of the following ordinary differential equation

  Write a script to solve the following systems of equations

Write a script to solve the following systems of equations using both matrix left division (\) and the inverse matrix method and Show that you have tested your MATLAB code appropriately

  Directional antennas in a stationary environment

Consider a point-to-point radio link between two highly directional antennas in a stationary environment. The antennas have antenna gains of 30 dB, distance attenuation is 150 dB, and the receiver has a noise figure of 7 dB.

  Anatomy of a machine

Need a Machine Learning application written in matlab to be able to predict, based on certain selected features of wine, which variants of wine are likely to score above a 5 out of 10 quality score.

  Matlab i uploaded the requirments

i uploaded the requirments

  The function should compute and return

Define a function that takes as input parameters a function handle f, start and end values a and b, and a number of steps n. The function should compute and return the x and y values of the maximum of the function over the range a to b.

  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.

  Read the file a line at a time

Write the modified text file with the same name as the original file, but preprended with 'new_'. For instance, if the input filename was 'data.txt', the output filename would be 'new_data.txt'.

  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

  First ten numbers of the sequence of pseudorandom numbers

write a program that gives the first ten numbers of the sequence of pseudorandom numbers

  Write mass balance equations for the remaining reactors

Write mass balance equations for the remaining 4 reactors. Put the known values in the 5 equations and convert each equation into a form where left hand side contains all the variables and the right hand side the constant term.

  Matlab inline functions

Consider g(t)=e^(-2t) cos?(πt)(u(t)-u(t-2.5)), use Matlab inline functions for the following questions

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