Why must have brackets around 'student'?

6 visualizaciones (últimos 30 días)
zhenyu zeng
zhenyu zeng el 23 de Mayo de 2019
Comentada: Jan el 23 de Mayo de 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 comentario
Jan
Jan el 23 de Mayo de 2019
To be exact: "brackets" are [ and ], while ( and ) are called "parentheses".

Iniciar sesión para comentar.

Respuesta aceptada

madhan ravi
madhan ravi el 23 de Mayo de 2019

Más respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by