How to make a kind of interaction between reference solution and learner template in Matlab Grader?

7 Ansichten (letzte 30 Tage)
I want to make different solutions and data to different people according to their id no#. So i need to make a way that a student writes in his ID in the learner and by that the reference solution can read this number and generate values specific to that ID No#. and then i need the learner template to read these variables and display them to the student. Is that possible?
  1 Kommentar
Alfonso da Silva Saavedra
Alfonso da Silva Saavedra am 30 Dez. 2022
Hi! I've done something like you need. Take a look to this example: https://github.com/alfonsovng/matlab-grader-utils/tree/main/examples/3-script-problem-personalized-values-image

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Cris LaPierre
Cris LaPierre am 29 Okt. 2018
Simply put, no.
The order of execution is
  1. Reference solution run to completion
  2. Learner solution run to completion
  3. Assessment tests run to completion
There is no ability to switch back and forth, running portions of them both.
Is this not something you could achieve using randomly generated numbers? Do the example problems 'Coordinate Transformations - Navigating a robot' or 'Finding a signal through the noise' provide potential solutions? The randomly generated numbers mean each student will have different data to work with, but because both the reference and learner workspaces share the same seed, they will generate the same random numbers, allowing for automated assessment.
  6 Kommentare
Justin Wyss-Gallifent
Justin Wyss-Gallifent am 6 Jun. 2020
I'm late to the post but I agree with Andrew here. This seems like an easy(ish) thing that would be immensely helpful.
Jeff Alderson
Jeff Alderson am 13 Jul. 2020
By design, MATLAB Grader solutions do not have access to personally identifiable information about students.
If you were to provide a P-coded function that accepts an input in the form of a Student ID that the learner provides in their solution, you could use that ID as an index to look up data from another P-coded file and return any variable you wish. You could reuse such a function in multiple problems, and include a note in your problem description that the student must provide their own Student ID as an input to your custom function at the start of their solution.
There may be another MATLAB Answers article that demonstrates this, and I will link back to it when I can find it.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Communitys

Weitere Antworten in  Distance Learning Community

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by