Why must have brackets around 'student'?
Ältere Kommentare anzeigen
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
Jan
am 23 Mai 2019
To be exact: "brackets" are [ and ], while ( and ) are called "parentheses".
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!