Given two numbers X and Y. Write a program to determine the difference between X and Y. If X – Y is negative, compute R = X + Y; if X – Y is zero, compute R = 2X + 2Y; and if X – Y is positive, compute R = X*Y. Print out the value of X, Y, and R.
The heart beat rate has to be well regulated to provide enough oxygenated blood
throughout the body and so depends on feedback with the body’s oxygen demand. A simple discrete model of heart beat regulation is given by:
xt+1 = kxt(1 - xt)
Here xt represents the normalised heart beat rate at time t recorded once per minute. That is, the normalisation involves dividing the actual hear rate in beats per minute by 80 beats per minute.
The parameter k is a positive real number (hopefully) greater than 0.
a) Write a MATLAB program using array operations to generate a table (with headings) of the normalised heart beat rate per minute starting at time t = 0 with the value of x0 entered by the user. Run your program with the maximum time set to 30 minutes. Show table and MATLAB code for x0 = 0.1 and k = 2.
My answer:
x=0.1;
beats= A(1,30);
for k=1:30
A=2x*(1-x);
x=A;
disp(A)
end
(I am getting an error code and I don't know how to solve it please help me!)
State and explain the challenges to data mining regarding data mining methodology and user interaction issues.
Critically discuss and illustrate using a diagram the steps involved in data mining when viewed as a process of knowledge discovery.
You have an ordered linked list with 5 object of type person in it.
Explain with an example of how to add and delete a person in an ordered list. Your list should remain ordered after the insertion and after the deletion of the item.
Note: a Person in this case should be an object that has name, surname, age and gender
An arrayList is one of the most important data structures used in many applications.
Define and show the implementation of the functions of an arrayList.