Why must have brackets around 'student'?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
zhenyu zeng
am 23 Mai 2019
Kommentiert: Jan
am 23 Mai 2019
function avg=avgscore(testscores,student,first,last)
for k=first:last
scores(k)=testscores.(student).week(k);
end
avg=sum(scores)/(last-first+1)
Why must have brackets around 'student'?
1 Kommentar
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!