Tha lab-assignment report can be written in LaTeX or MS Word. The report should be written using font size of 11pt. Matlab code listings should be included in appendices of the report and should be of 9pt font size.

The front page of the report should contain the module title and IDs of all persons working in the group. It should indicate the overall effort of each person as agreed by the group. The total group effort should sum up to 100%. If all persons worked equally, the effort of each in a group of 4 persons would be 25%. There should be also a clear indication to which parts of the assignment each person contributed to.

Submission of the assignment (as well as all the required files) is through Canvas – under the ‘MSc Introductory Module for Computer Engineering’, find the assignment ‘Lab-Assignment Submission’. The report should be submitted in .pdf file format. Make sure you attach all the files required and make your submission. EACH GROUP should make a SINGLE SUBMISSION.

The usual penalty of 5% per day will apply to all late submissions.

# Category: Computer Science : MATLAB

## Two issues exist that cause issues with the table that is read in if you use the

Two issues exist that cause issues with the table that is read in if you use the uiimport function (let’s call this covidTable). First, the first column of covidTable is actually a cell, which isn’t obvious at first glance. The second issue is that the date column contains the data datatype which, apparently, can’t be read using the covidTable.Variable option. I’m going to share with you a snippet of code that will allow you to access the data in a column (that you must first define). You may omit the question related to finding the continent with the highest GDP. Since this metric is typically associated with countries, these values are not available in the database. Please do answer the last two questions in this problem Question 7, Part 1, change “ICU beds” to “hospital beds.” The goal is to understand the availability of medical facilities per capita which, as we’ve seen, can have a critical impact on patient care. The database contains info about ICU beds utilization, which is a different metric. you’ll likely realize that many regions do not have available values. This is beyond our control, and your program should work for either case (i.e., there are values, or there are no values). Be sure to test your code on regions for which there are values (as I will do to evaluate your script).

## Your job is to create an M-file named calcTvstime.m that contains a function n

Your job is to create an M-file named calcTvstime.m that contains a function named calcTvstime. The outline of the function is the following:

function [T,Ttipsim,Qfinsim] = calcTvstime(T,Nx,Ny,Nt,lam,kcond,h,dx,dt,Lx,Ly,Lz,Bi,Tb,Tinf)

% Insert code that calculates the temperature distribution at each time step

% Insert code that calculates the average temperature at the tip at the last time step

% Insert code that calculates the heat rate into the fin at the last time step

% Insert code that creates an animation of the temperature distribution (only plot 100 time steps

## Hello, I have a homework assignment that requires me to create two matlab functi

Hello, I have a homework assignment that requires me to create two matlab functions. The functions themselves do not have to be complex what so ever. They can be extremely simple so long as it fulfills the homework question. Further details will be attached in the photos.

## Hello, I have a homework assignment that requires me to create two matlab functi

Hello, I have a homework assignment that requires me to create two matlab functions. The functions themselves do not have to be complex what so ever. They can be extremely simple so long as it fulfills the homework question. Further details will be attached in the photos.

## https://cs.slu.edu/~ferry/courses/csci1060/homeworks/hw06/06_fire.html Problems

https://cs.slu.edu/~ferry/courses/csci1060/homeworks/hw06/06_fire.html

Problems to be Submitted (20 points)

Our goal for this assignment is to write a program that simulates the following model for fire growth. We assume that we have a rectangular grid with a fixed number of rows and columns. Initially, the grid is presumed to have trees that can fuel a fire. We then simulate a fire that starts at a specified cell of the grid. At each step, the fire burns out all of the fuel of its current cell, while moving to an adjacent cell that still has fuel (horizontally or vertically; not diagonally). In particular, if there is a choice of neighboring cells having fuel, it picks one of those choices uniformly at random for the next step. A trial should end when the fire either reaches a cell at the boundary of the grid, or when it reaches a location in which all neighboring squares have already been visited, in which case the fire burns out.

Create a file fire.m implementing a function with the following specifications.

function outcomes = fire(numRows, numCols, startRow, startCol, trials)

% Simulate the spread of a fire.

% USAGE: outcomes = fire(numRows, numCols, startRow, startCol, trials)

% The simulation will be performed on a grid with

% specified number of rows and columns, assumed to be numbered

% starting at (1,1) at the top-left. The fire begins at location

% (startRow, startCol) within that grid.

%

% An individual trial will have one of five outcomes:

% 1) it reaches the right edge of the grid

% 2) it reaches the bottom edge of the grid

% 3) it reaches the left edge of the grid

% 4) it reaches the top edge of the grid

% 5) it burns out within the grid

% The returned outcome will be a row-vector of length five

% designating the percentage of trials that resulted in

% such outcomes. For example, the value outcomes(5) is the

% percentage of trials that burned out.

%

% input argument trials specifies the number of independent

% trials. If not specified, one trial will be performed.

%

% When only one trial is to be performed, the function animates

% the spread of the fire.

A series of frames from a trial of fire(7, 7, 4, 4)

The next step goes to the left, exiting the grid.

The final frame of a trial fire(20, 30, 10, 15) in which the fire reaches the bottom edge of the region.

The final frame of a trial fire(20, 30, 10 15) in which the fire burns itself out.

Creating Images in Matlab

Given a matrix of integers, you can plot an image based on the use of those integers as indices into a prescribed colormap. The syntax as image(A) where A is the matrix of numbers.

For our images, we simply use three colors, with color 1 being the forest green, color 2 being the fiery orange, and color 3 being the burnt-out gray. We set that colormap with the following command.

colormap([.035 .200 .153; 1.00 .367 .063; .561 .510 .592]) % rgb values for green, orange, gray

For example, try copy-pasting these three lines into a script. Then, change the map matrix to modify the image.

colormap([.035 .200 .153; 1.00 .367 .063; .561 .510 .592]) % rgb values for green, orange, gray

map = [ 1 1 1 1; 3 3 3 1; 2 3 3 1 ];

image(map);

Extra Credit (2 points)

Write a separate function fireExtra.m that does the same simulation, except this time allowing the fire to spread diagonally as well as horizontally and vertically. At each step, if there are multiple choices for the fire to spread, each should have an equal probability of being picked. Also, if it happens that the simulation ends with the fire at a corner of the grid, credit 1/2 an outcome for each of the two boundaries.

## Population dynamics of rabbits and foxes (a) A simple Lotka–Volterra Model We ha

Population dynamics of rabbits and foxes

(a) A simple Lotka–Volterra Model

We have discussed in detail the Lotka–Volterra model for predator-prey relationships

dNprey

dt = +Rprey,oNprey(t) − γNprey(t)Npred.(t)

dNpred.

dt = γNprey(t)Npred.(t) − Rpred.,oNpred.(t)

but how does it really work in practice? Consider an example of rabbits and foxes. First,

we need to consider reasonable parameters — the following are a starting point:

• Ro,prey = 0.04

• Ro,pred = 0.2

• γ = 0.0005

• = 0.1

Assume that the time units are all in days, and that the populations are numbers of

individuals per square kilometer. What is the doubling time of rabbits without predation,

and the death rate of foxes? Explain whether or not these values are biologically reasonable.

Explain the meaning of the terms γ and and consider their values — do these make sense

(consider what conditions will lead to a balance of growth/death in each population)?

We can simulate this system using the same Forward Euler method that we used in the

first project; when we have two variables (for example, x and y), we simply use the Forward

Euler update rule for both of them. That is, at each time step, we set:

x(t + ∆t) = x(t) + dx

dt (∆t) and y(t + ∆t) = y(t) + dy

dt(∆t)

Using initial populations of 200 rabbits and 50 foxes per km2

, and a time step of 0.01

days, determine how the rabbit and fox populations will vary over one year. Plot the two

populations versus time on the same graph, as well as versus each other (on another graph).

In the latter plot use the quiver function to add velocity arrows to the plot (use a lighter

color such as gray for this). Discuss the observed behavior of the populations. What is the

range in each population?

Repeat your calculations with initial populations of 5000 rabbits and 100 foxes per km2

,

and discuss how the behavior of the system changes. Do the same for 4000 rabits and 80

foxes per km2

. What does this result tell you about the system?

Additionally, draw the phase plane graph for the interaction of these two species and

explain the graph.

1

(b) Extending the Lotka–Volterra Model

In class, we have discussed some of the limitations of the Lotka–Volterra model, and how we

might begin to address these. Consider two different models, both using the Lotka–Volterra

model (with the original set of parameters) as a starting point:

1. A model with unrestricted prey growth replaced by a logistic equation-based model.

That is, replacing α with:

A(U) = α

1 −

U

K

2. A model with restricted prey growth, as in (1), and with a predator response that

saturates at high prey density, using the Holling’s disk equation. That is, replacing α

as above, and replacing γ with:

Γ(U) = sU

1 + shU

Set K = 10, 000, s = γ and h = 0.2. Briefly explain what these values mean, in a biological

context (Hint: consider how the underlying equations behave at very low or very high

populations).

For each case, make a plot of the populations versus time and the populations versus

each other (again adding velocity arrows), in this case for a time span of at least three years.

Describe how each trajectory differs from the original Lotka–Volterra model, and from each

other, and give a suggested rationale for why these differences arise.

## • Plot finger trajectories with the corresponding target • Find the coordi

• Plot finger trajectories with the corresponding target

• Find the coordinates of the target, and the movement endpoint trial, and assemble the data into well-organized tables.

• Calculate the X and Y distance between the target and the finger endpoint.

• Find the means and standard deviations of these distances

• Calculate and plot the finger velocity for each trial.

• Calculate and plot the elbow joint angle vs. time.

• Calculate elbow angular velocity. Compare peak velocity.

• Using the subplot options in MATLAB, create a figure showing elbow angle vs. time, elbow angular velocity vs. time, Triceps and Biceps EMG activity vs. time. How will you sync up the plots given that the cameras and the amplifier use different sampling frequencies? Describe during which part of your reaching movement you observe maximal or minimal EMG? Try to explain the relationship between the timing of the EMG activity and the movement.

## Write a well-documented MATLAB script ℎ???8?1. ? to perform a Monte-Carlo simula

Write a well-documented MATLAB script ℎ???8?1. ? to perform a Monte-Carlo simulation of 1,000,000 trials of an

experiment where a duel is simulated between two people. Create a MATLAB function ??????????() to simulate a

duel where each contestant comes at a random moment between NOON and 1 P.M. on an appointed day and leaves

exactly five minutes later. A duel occurs only if opponents are together within the time interval. The function returns

a one (1) if a death occurs or else returns zero (0). The program ℎ???9?1. ? calls the function ??????????() and

tallies how many deaths occur and estimates the probability of death by dividing the number of deaths divided by the

number of simulations.

Record the estimate of the probability of death as a comment in ℎ???8?1. ?.

## The attached waveform includes one of 16 possible signals plus noise. The signa

The attached waveform includes one of 16 possible signals plus noise. The signals are 4 bits long (0000, 0001, 0010, … etc.). You have to figure out which one using auto or cross correlation. A “1” is indicated by 1 volt, a “0” by -1 volt. The signal is 40 points long. Each bit is 10 points long. The 41st point starts a new sequence.

Students Question:

Question: Hey guys for project we have to figure out which one using auto or cross correlation?

Answer: I think we use auto to find the 0000-1111 waveforms then cross each of those with the thing he gave us

Also i want with report 1 page or 2.