Partial grading for a Matrix

It would be great if, for questions where the answer is a matrix, the student can get a mark for each element they get correct.


I can already do this with the code:

M:=indets(InertForm:-Parse("$RESPONSE"),constant);

N:=indets($ans6,constant);

good:=nops(M intersect N);

bad:=nops(M minus N);

evalf(max(good-bad,0)/nops(N));


But this accepts the numbers in the matrix in any order. Is there a way to fix the arrangement of the matrix answer?

  • Naomi Wray
  • Jul 8 2021
  • Already Exists
  • Attach files
  • Admin
    Boris Pavlovic commented
    8 Jul 03:46pm

    Please contact DigitalEd support at support@digitaled.com for information on how to do this!