Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I just need to know the formula for putting this in thecomputer so it (MatLab) s

ID: 3610323 • Letter: I

Question

I just need to know the formula for putting this in thecomputer so it (MatLab) solves this for me. Thanks The vector G represents the distribution of final grades in astaticscourse: G = [68, 83, 61, 70, 75, 82, 57, 5, 76, 85, 62, 71, 96, 78,76, 68, 72, 75, 83, 93] a) Use MATLAB o sort the data and create a bar graph of thescores. b) Create a histogram of the scores. Thanks to all. :) I just need to know the formula for putting this in thecomputer so it (MatLab) solves this for me. Thanks The vector G represents the distribution of final grades in astaticscourse: G = [68, 83, 61, 70, 75, 82, 57, 5, 76, 85, 62, 71, 96, 78,76, 68, 72, 75, 83, 93] a) Use MATLAB o sort the data and create a bar graph of thescores. b) Create a histogram of the scores. Thanks to all. :)

Explanation / Answer

The vector G represents the distribution of final grades in astatic course:

   G = [68, 83, 61, 70, 75, 82, 57, 5, 76, 85, 62, 71,96, 78, 76, 68, 72, 75, 83, 93]

    a) To sort the given data, we can use sortcommand

          sort(G,DIM,MODE)

           G is the given data

           DIMrepresents the dimension of the given data

          Moderepresents the direction of the data

           "ascend"mode is to represents the ascending order of the data

            "descend"mode is to represents the descending order of the data

  >> Y= sort(G,2,ascend)

        Y=5,57,61,62,68,68,70,71,72,75,75,76,7678,82,83,83,85,93,96

      To create the bar graph usingthis command

>>bar(Y)    //bar graph will be created

  b) To create the histogram, we can usethis

>> G = 0:1:100

>>Y=[5,57,61,62,68,68,70,71,72,75,75,76,7678,82,83,83,85,93,96]

>>histogram(Y,G) //histogram will be created

I hope this will helps to you