Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The xsl file is just loaded in it doesn't say what it is its just writing a code based off of it you shouldn't need

image text in transcribed

The xsl file is just loaded in it doesn't say what it is its just writing a code based off of it you shouldn't need the data to write the code after its loaded in

This problem exercises the reading and writing of excel spreadsheets. 1. Use the xlsread() function to read the numerical data from the file grades.xlsx into an array called scores, and the text data from the file into an array called names. 2. Use disp() to display the names to the command window. (Matlab will store the text data in a cell array, which we have not covered yet. We won't ask you to do anything more with it at this point.) 3. Perform the following statistical calculations on the scores and store them in a row vector called grade_stats: mean, median, mode, standard deviation, minimum, maximum. (They must be stored in the vector in the specified order. Use help if you are unfamiliar with the Matlab functions to perform these operations. 4. Use the csvwrite() function to write the grade_stats array to a spreadsheet file called grade_stats.csv. (Unfortunately xlswrite does not work in Grader. However, the syntax of csvwrite is the same.) The template will read the contents of your written spreadsheet file to verify its contents. Script C Reset MATLAB Documentation %read the Excel data file m in %do the calculations 8 grade_stats = []; 10 %write the results to the spreadsheet file; must be called grade_stats.csv

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

Hands-On Database

Authors: Steve Conger

2nd Edition

0133024415, 978-0133024418

More Books

Students also viewed these Databases questions

Question

Explain how to reward individual and team performance.

Answered: 1 week ago