im trying to calculate average grades using matlab

</matlabcentral/answers/uploaded_files/139114/Screenshot%20(3).png> how would i do an average grade i know id have to do individualgrade=(mp+IDQ+midterm) then do team grade=() and then do finalgrade=(individualgrade+teamgrade) but for each grade id have to get an average the multiplt by its weight??

댓글 수: 7

madhan ravi
madhan ravi 2018년 11월 1일
편집: madhan ravi 2018년 11월 1일
Screenshot won’t help , upload your code
Oh ok I took a screen shot of the code but how do I upload the code ?
Sorry I'm fairly new to matlab
Just copy and paste it here
Ok thank you
if true
% code
endgwidq=(.5*20)
gwmp=(.5*5)
gwpreapp=(25*.5)
gwmidterm=(.5*30)
gwteamDQ=(.5*40)
gwAE=(.5*60)
idq=(70*gwidq)
mp=(88.89*gwmp)
preapp=(92.5*gwpreapp)
midterm=(60*gwmidterm)
teamDQ=(96.25*gwteamDQ)
AE=(85.71*gwAE)
individuaGrade=(idq+mp+preapp+midterm)
TeamGrade=(teamDQ+AE)
FinalGrade=(individuaGrade+TeamGrade)
this is my code^

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

답변 (1개)

madhan ravi
madhan ravi 2018년 11월 1일

0 개 추천

Use mean()
To calculate average

카테고리

도움말 센터File Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

질문:

2018년 11월 1일

답변:

2018년 11월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by