Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 2 ( of 2 ) Loading data into Matlab is a fairly simple process based on MATLAB's built - in functions / commands .

Task 2(of 2)
Loading data into Matlab is a fairly simple process based on MATLAB's built-in functions/commands.
Download the file ExamGrades.txt from the Canvas Page where you accessed this assignment
document. Put the file in the same folder where you will be developing and executing your MATLAB
script. Next, create a script called HW6p1_Task2_UCusername.m which begins with the following
two lines of code:
clear;
Exam = readmatrix("ExamGrades.txt");
The readmatrix command will bring in the Exam scores for 300 students and store the values for each
student in a 1D Array called Exam. Your task is to analyze the Exam data. Specifically, your script
should determine how many students got A's,B's,C's,D's and F's based on the grade ranges in the
following table:
Your script should then output to the command window, using the fprintf command, the number of
students who got A's,B's,C's,D's and F's on the Exam.
Test case:
If one were to analyze just the first 10 data points, the following output should be expected.
A count =1
B count =6
C count =1
D count =0
F count =2
image text in transcribed

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

Learning MySQL Get A Handle On Your Data

Authors: Seyed M M Tahaghoghi

1st Edition

0596529465, 9780596529468

More Books

Students also viewed these Databases questions

Question

Return to the example in Figure

Answered: 1 week ago

Question

Detailed note on the contributions of F.W.Taylor

Answered: 1 week ago