Questions: 213

Answers by our Experts: 199

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

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!)


Solve this problem using MATLAB RTB commands. No need to solve

manually.

4.1 Find the rotation matrix R, obtained by the ZYZ Euler Angles (30
1. Implement the following system:

4x/dt=y

dy/dt = x-x
Matrix equations. Using the variables created in 2 and 3, find the values of xMat, yMat and
zMat below. Use matrix operators.
a. xMat = (aVec ∙ bVec) ∙ aMat-
b. yMat = (bVec ∙ aVec), note that this is not the same as (aVec ∙ bVec)
c. zMat = |cMat|(aMat ∙ bMat)1, where is the determinant of cMat , and T again
indicates the transpose (use det).
cM
Matrix variables.make the following variables

a. aMat= V a 9x9 matrix full of 2's (use 'ones' or 'zeros').

12

1

b. bMat=1

2

01

a 9x9 matrix of all zeros, but with the values 1-9 on the main

to ... 9
diagonal (use 'zeros', 'diag').

CMat=1_{-5}^{11}
0
2. Vector variables. Make the following variables

a. avec = [3.14 15 9 26]

b. bVec = [2.71 8 28 182], where [] stands for the vector transpose
c. cVec = [5 4.8...-4.8-5] (all the numbers from 5 to -5 in increments of -0.2)

Modify the power method so that the stopping condition is changed to

| ((Axn-un xn)/|Xn|) | <tolerance

where xn, μn are the current estimates of the eigenvector and eigenvalue. Demonstrate the validity of your code by running it on the matrix

3 -1 0

-1 2 -1

0 -1 3


A simple text-based version of a grid game such as battleship or mine-sweeper.

This is the criteria:
The code that you use to produce that application must use a combination of at least two of:

Loops
Vectors or Arrays
Conditional execution
Optionally, your code might embed:

Functions.
Visualisation of data
A simple card game such as twenty-one
(Link for refreshing : https://en.wikipedia.org/wiki/Twenty-One_(card_game))

This is criteria :
The code that you use to produce that application must use a combination of at least two of:

Loops
Vectors or Arrays
Conditional execution
Optionally, your code might embed:

Functions.
Visualisation of data
LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS