Editing Excel (Spreadsheets) using Matlab

Hello, I'm wondering how I could write the mean of all grades and apply a individual letter grade onto a spreadsheet... if given a simple list for example of what I'm given and then what I'm trying to do:
What would I need to do to make this happen using only Matlab (xlsread, xlswrite). Hope what I'm trying to ask makes sense, thanks!

댓글 수: 2

Ish
Ish 2017년 3월 29일
Is this what you need to do?: Read data from excel, calculate the mean,grade and write back to it.
James Larsen
James Larsen 2017년 3월 29일
Yes here is what I have so far
With an output of: (Conversion % to decimal issues...)

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2017년 3월 30일

0 개 추천

Your code is not calculating the letter for each row.
mean(num) is taking the mean of each column of num. You would need mean(num,2) to take the mean of each row . The result would be a column vector, and you need to find the letter for each entry in the column vector.
I recommend you look at logical indexing

카테고리

도움말 센터File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

질문:

2017년 3월 29일

답변:

2017년 3월 30일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by