Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

code using matlab Problem 5: (20 Points) Today you are going to pretend to be a detective working for an agency by interviewing suspects for

image text in transcribed

code using matlab

Problem 5: (20 Points) Today you are going to pretend to be a detective working for an agency by interviewing suspects for a house robbery. The agency has obtained records of 4 variables from 20 suspects and a number has been assigned to each suspect. This data is stored in a 20 by 5 matrix. You can download this matrix on blackboard and extract it form the file Problem5.mat. The format of the matrix is as follows: Column 1: number assigned to the suspect Column 2: height of each suspect (cm) Column 3: weight of each suspect (kg) Column 4: systolic blood pressure of each suspect (mmHg) Column 5: heart rate of each suspect (beats/min) I. The agency has a fuzzy street cam video of an intruder escaping from the house. From the video, it was deduced that the thief is roughly 150 to 180 cm tall, and weighs between 60 to 80 kg. Create a new matrix called suspects which includes the suspects who meet the above characteristics. Store each suspect's number, weight and height in the matrix suspects. Also create a vector called notasuspect containing ONLY the suspect number of those who do not meet the mentioned characteristics. (Hint: you can use for and if statements) II. Traces of a drug were found at the incident site, suggesting that the thief may have high blood pressure. Edit the matrix suspects by deleting the all the information of the suspects whose blood pressure is lower than 120 mmHg. Add these deleted suspects to the notasuspect vector III. The heart rates of the suspects were monitored and recorded for a key question in the interview process. Those with accelerated heart rate were considered dishonest. Edit matrix suspects by deleting the subjects with heart rate lower than 140 beats/min. There should only be two suspects left. Display the result in the following format: "The most likely to be the thief are suspect N and M." where N and M are the assigned numbers of the two remaining suspects

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Semantics In Databases Second International Workshop Dagstuhl Castle Germany January 2001 Revised Papers Lncs 2582

Authors: Leopoldo Bertossi ,Gyula O.H. Katona ,Klaus-Dieter Schewe ,Bernhard Thalheim

2003rd Edition

3540009574, 978-3540009573

More Books

Students also viewed these Databases questions

Question

How can we decide what is ethical and what is not in psychology?

Answered: 1 week ago