Right now im trying to make average grades on matlab from a chart on excel. How do I say on matlab the hw row is 15% of my final grade and the test is 30%.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Collin Kerr
am 8 Mär. 2016
Kommentiert: Jonathan Azarani
am 23 Mär. 2016
clc A = xlsread('Joke.xlsx')
B = mean(A(1:42,1))
C = mean(A(1:16,2))
D = mean(A(1:3,3))
E = mean(A(1:1,4))
F = mean(A(1:1,5))
G = mean(A(1:1,6))
M = mean(A)
Z = mean(M)
prompt = 'What is your name?';
N = input(prompt,'s');
X = sprintf('%s your current grade in the class is %0.0f.',N,Z);
disp(X)
I need to some how say E which is tests taken are 30 percent of the total grade, and D which is hw is 10, etc.. for the others
1 Kommentar
Jonathan Azarani
am 23 Mär. 2016
I'm having the same problem but i can't even get my excel spreadsheet to work with my matlab.
Akzeptierte Antwort
Chad Greene
am 8 Mär. 2016
If E is worth 30% of the final grade and D is worth 10% of the final grade,
FinalGrade = A*Aweight + ... + D*0.1 + E*0.3 + ...
for a total of 100%
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!