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

  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