Why must have brackets around 'student'?

1 次查看(过去 30 天)
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 个评论
Jan
Jan 2019-5-23
To be exact: "brackets" are [ and ], while ( and ) are called "parentheses".

请先登录,再进行评论。

采纳的回答

madhan ravi
madhan ravi 2019-5-23

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by