Questions
Matlab The following matrix describes Injury Severity Score (ISS, unitless) and hospital stay (days). Row 1...

Matlab

The following matrix describes Injury Severity Score (ISS, unitless) and hospital stay (days). Row 1 is the ISS and row 2 is the hospital stay.

[64,35,50,46,59,41,27,39,66;

8,2,5,5,4,3,1,4,6].    

Create a script that plots stay in hospital vs ISS. Label the plot and all axis. Display to the command window a message with the mean ISS score, and the mean days in hospital. (i.e. “The mean ISS score is 30”, not just x = 30).

Use the sort(x) to arrange a vector in ascending order

Question: On the plot select “Tools” -> “Basic Fitting”. A window will pop up for line fitting. Select the box “linear”. Press the right arrow button to get the coefficient values for linear fit. What is the estimated stay for a patient with a ISS of 55?

Make note of the formula as it will be used later.

Calculating ISS for an individual involves taking scores from an Abbreviated Injury Scale (AIS) from 0 – 5 for six different body areas head, face, chest, abdomen, extremities, and external. The three body areas with the highest score have their AIS squared and are added together to produce an ISS for individual.

In: Electrical Engineering

Do Not Use Pseudo Insturctions or li la instructions, etc... Write and test a MIPS program...

Do Not Use Pseudo Insturctions or li la instructions, etc...

Write and test a MIPS program consisting of four functions. In the following descriptions, the symbol & means “address of”.

void main(): The main function must 1) print your name 2) call the readData function 3) call count function 4) complete the program. The main function must set up all parameters before calling each of the functions.

int readData (&array): The starting address of an array is passed to the function as a parameter using $a0. The function must prompt for and read and store integers in the array until either a zero is entered or 10 numbers are read. Once the tenth integer is entered, your program must stop reading. The function must return (using $v0) the number of values read and stored in the array (10 or less). The zero input is not part of the array and must not be stored in the array. If the first input is a zero, then the array will be empty and the count returned is zero.

float average (&array, count): The starting address of an array (in $a0) and the number of integers stored in the array (in $a1) are passed to the function. The purpose of the function is to calculate and return (using $f0) the floating point average of the numbers. To find the average, sum all the integers together and then divide by the count as a floating point value. If the count is zero, return 0.0. Use appropriate registers for the parameters and the return value.

void count (&array, count): The starting address of an array (in $a0) and the number of integers stored in the array (in $a1) are passed to the function. The function determines how many of the integers in the array are greater than or equal to the average. First the parameters for the average function are set and then average function is called to determine the average value. The returned value is then printed. Then each value in the array is tested to determine if its value is greater than or equal to the average. The count of the values greater than or equal to the average is then printed.

Example input and output:

Linda Chatting
Enter a number 3
Enter a number 6
Enter a number 2
Enter a number 4
Enter a number 0
The average is 3.750000000
There are 2 numbers greater than or equal to the average.

In addition,

 Functions must be called using jal and return using jr.

 Parameters must be passed as specified and used correctly. The readData, average and count

functions must access the array through the parameter, not directly.

 Be sure to comment all instructions. All functions must include comments describing the

function and its parameters and return value (if any). Be sure that your name and class ID appear at the beginning.

In: Electrical Engineering

Explain the the characteristics of CMOS.

Explain the the characteristics of CMOS.

In: Electrical Engineering

What is an inherent problem to watch out for when adding transient suppressors to data lines?

What is an inherent problem to watch out for when adding transient suppressors to data lines?

In: Electrical Engineering

4. Write a code that S1(push button -P1.1) turns LED1 (Red LED- P1.0) ON and stays...

4. Write a code that S1(push button -P1.1) turns LED1 (Red LED- P1.0) ON and stays on when you push once and turns off and stays OFF when you push 3 times. This should repeat forever.

5. Write a code that S2(push button -P1.2) turns LED2 (Red LED- P9.7) ON and stays ON when you push once and turns OFF and stays OFF when you push 3 times. This should repeat five times.

6. Write a code that LED2 (Red LED- P9.7) ON when as long as you push S2(push button - P1.2) and LED1 (Red LED- P1.0) on as long as S2(push button -P1.2) not pushed.

In: Electrical Engineering

How can a monocrystalline silicon PV cell generate electricity when exposed to sunlight? Describe the mechanism...

How can a monocrystalline silicon PV cell generate electricity when exposed to sunlight? Describe the mechanism of PV effect, starting from doping.

In: Electrical Engineering

Draw a creativity / beautiful infographics about Electrostatic Discharge (ESD).

Draw a creativity / beautiful infographics about Electrostatic Discharge (ESD).

In: Electrical Engineering

Draw and create a creativity / beautiful infographics to explain about Electrostatic Discharge (ESD). -20 marks

Draw and create a creativity / beautiful infographics to explain about Electrostatic Discharge (ESD). -20 marks

In: Electrical Engineering

In relation to a differential op amp, using bjts, cap and resistors....If you have any suggestions...

In relation to a differential op amp, using bjts, cap and resistors....If you have any suggestions as to what standards I should use to evaluate the quality of a diff op amp...that be great.

In: Electrical Engineering

5) Give a detailed analysis on eddy current testing in NDT (maximum 4 pages).

5) Give a detailed analysis on eddy current testing in NDT (maximum 4 pages).

In: Electrical Engineering

matlab code to calculate cost of generator in power system

matlab code to calculate cost of generator in power system

In: Electrical Engineering

In your own words, describe: 1) Edge triggering 2) What an AutoSet function on an oscilloscope...

In your own words, describe:

1) Edge triggering

2) What an AutoSet function on an oscilloscope does

In: Electrical Engineering

Define types of power sources

Define types of power sources

In: Electrical Engineering

Pharaphrase and rewrite the following paragraph: Arduino Arduino Uno is a microcontroller board b... pharaphrase and...

Pharaphrase and rewrite the following paragraph:

Arduino Arduino Uno is a microcontroller board b... pharaphrase and rewrite the following paragraph: Arduino Arduino Uno is a microcontroller board based on the ATmega328P (datasheet). It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz quartz crystal, a USB connection, a power jack, an ICSP header and a reset button. It contains everything needed to support the microcontroller; simply connect it to a computer with a USB cable or power it with a AC-to-DC adapter or battery to get started.[1] "Uno" means one in Italian and was chosen to mark the release of Arduino Software (IDE) 1.0. The Uno board and version 1.0 of Arduino Software (IDE) were the reference versions of Arduino, now evolved to newer releases. The Uno board is the first in a series of USB Arduino boards, and the reference model for the Arduino platform.[1] The Arduino Uno can be programmed with the (Arduino Software (IDE)). The ATmega328 on the Arduino Uno comes preprogrammed with a bootloader that allows you to upload new code to it without the use of an external hardware programmer. It communicates using the original STK500 protocol (reference, C header files).Differences with other boards The Uno differs from all preceding boards in that it does not use the FTDI USB-to-serial driver chip. Instead, it features the Atmega16U2 (Atmega8U2 up to version R2) programmed as a USB-to-serial converter.[1]Programming Power The Arduino Uno board can be powered via the USB connection or with an external power supply. The power source is selected automatically. External (non-USB) power can come either from an AC-to-DC adapter (wall-wart) or battery. The adapter can be connected by plugging a 2.1mm center-positive plug into the board's power jack. Leads from a battery can be inserted in the GND and Vin pin headers of the POWER connector.[1] The board can operate on an external supply from 6 to 20 volts. If supplied with less than 7V, however, the 5V pin may supply less than five volts and the board may become unstable. If using more than 12V, the voltage regulator may overheat and damage the board. The recommended range is 7 to 12 volts.[1] The power pins are as follows: Vin. The input voltage to the Arduino/Genuino board when it's using an external power source (as opposed to 5 volts from the USB connection or other regulated power source). You can supply voltage through this pin, or, if supplying voltage via the power jack, access it through this pin. 5V.This pin outputs a regulated 5V from the regulator on the board. The board can be supplied with power either from the DC power jack (7 - 12V), the USB connector (5V), or the VIN pin of the board (7-12V). Supplying voltage via the 5V or 3.3V pins bypasses the regulator, and can damage your board. 3V3. A 3.3 volt supply generated by the on-board regulator. Maximum current draw is 50 mA. GND. Ground pins. IOREF. This pin on the Arduino/Genuino board provides the voltage reference with which the microcontroller operates. A properly configured shield can read the IOREF pin voltage and select the appropriate power source or enable voltage translators on the outputs to work with the 5V or 3.3V.[1]

In: Electrical Engineering

what is the name of the rotating electromagnet in the ac generator?

what is the name of the rotating electromagnet in the ac generator?

In: Electrical Engineering