1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
zhannawk [14.2K]
3 years ago
8

Write a MATLAB script m-file to compute the ISS given an array of 6 AIS scores, which represent the most severe injuries to each

of the six body parts. Test your code using the array [3 0 4 5 3 0], for which the ISS should be 50.

Computers and Technology
1 answer:
Dmitrij [34]3 years ago
4 0

Answer:

The Matlab code is as given in the explanation, paste the code in the new script file, save it and run.

Explanation:

The code is as follows

Code:

<em>%% Initialization of the code</em>

<em>% The code takes an array of six AIS scores of the form [AIS1 AIS2 AIS3</em>

<em>% AIS4 AIS5 AIS6] of order 1x6.</em>

<em>AIS=input('Please enter the AIS array of the form [AIS1 AIS2 AIS3 AIS4 AIS5 AIS6]');%taking input of the array</em>

<em>AISs=sort(AIS,'descend');%sorting the array in the descending order</em>

<em>iss=(AISs(1,1)^2)+(AISs(1,2)^2)+(AISs(1,3)^2);%Calculating the ISS</em>

<em>disp(['The injury severity score (ISS) for the entered array is ', num2str(iss)])%Displaying the output</em>

Output:

<u><em>Please enter the AIS array of the form [AIS1 AIS2 AIS3 AIS4 AIS5 AIS6][3 0 4 5 3 0];</em></u>

<u><em>The injury severity score (ISS) for the entered array is 50</em></u>

<u><em /></u>

You might be interested in
Lena is completing her senior year of college and is living in an apartment with three friends. Her family has a subscription to
vladimir1956 [14]

Answer:

d) consumer misbehavior

Explanation:

This is an example of consumer misbehavior. What Lena is doing is not technically piracy or illegal because HBO has created the family feature on their accounts for the account to be used by multiple people at the same time. Yet, the feature was not intended to be used by individuals that are not technically family or even under the same roof. Therefore, what Lena is doing goes against HBO's reason for this feature and sharing the account as Lena is doing is ultimately hurting HBO's streaming service.

4 0
2 years ago
On five lane roadways, the center lane is designated for __________ and is used by vehicles traveling in both directions.
Alla [95]
Answer : The center lane is designated for left turns

Explanation: 
This lane is used so that drivers would pull into in order to turn left when a clear merge is available. Its main purpose is not to cause traffic jam while waiting for the chance to turn left. It is illegal to use this lane for any other purposes
5 0
3 years ago
Is anyone else recieving a notification from brainly near the search bar about a message and click it and there nothing there???
Yakvenalex [24]

tessa the same with me I hate it and then I'll click I and then it's blank

4 0
3 years ago
Given a two-dimensional array named scores with double type elements, write the embedded loop to navigate this array and multipl
bearhunter [10]

Answer:

Following are the code to this question:

void increase(double scores[][]) //defining method increase

{

//defining loop to multiply the value by 10

for(int x=0;x<scores.length;x++)

{

for(int y=0;y<scores[x].length;y++)

{

scores[x][y]=scores[x][y] * 10; //multiply value

}

}

}

increase (scores);  //call method and pass the value

Explanation:

Description to this question can be described as follows:

  • In the above-given code, a method increase is declared, in which we pass a double array "scores", and inside the method two for loop is defined.
  • Inside the loop an integer variable "x and y"  is used, which multiply by 10 in the score array.
  • In the next line method is called, that accepts array value, in this method calling we can't need to receive the return value because it increases, and it does require a void return type.
7 0
2 years ago
Why are magicians gay
AlexFokin [52]

Answer:

Not all of them are

Explanation:

8 0
2 years ago
Read 2 more answers
Other questions:
  • What file would you edit to restrict the number of simultaneous logins a user can employ??
    14·1 answer
  • Which of the following is true of the Internet as a medium for branding? a) The Internet is more effective as a media for brandi
    10·1 answer
  • To close the ____ view, click File on the Ribbon or click the preview of the document in the Info gallery to return to the docum
    9·1 answer
  • Write a for loop to print all NUM_VALS elements of array hourlyTemp. Separate elements with a comma and space. Ex: If hourlyTemp
    11·1 answer
  • The analysts at Techno Info Systems are considering the four-model approach to system development for a new client. If they make
    9·1 answer
  • Using ________ as a promotion method will bring return visitors to your site.
    8·1 answer
  • Identify the equation that translates Y = In(x) five units down.​
    8·1 answer
  • WIRELESS DATA TRANSMISSION METHODS​
    8·1 answer
  • Uinjsiodj9fijsdiokjdwe0okakj09dw9j09jw09
    9·2 answers
  • 8.4 Lesson Practice <br> edhesive quiz
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!