Is it possible to automatically grade Simulink/Simscape models?

22 views (last 30 days)
Does MATLAB Grader support the autograding or the use of Simulink models in autograded MATLAB code?

Accepted Answer

Jeff Alderson
Jeff Alderson on 16 Jun 2020
Edited: Jeff Alderson on 1 Jul 2020
MATLAB Grader was designed to automatically grade MATLAB code and not Simulink models interactively. While Simulink models can be accessed through the use of the "sim" command in MATLAB Grader, those models can not be edited or accessed interactively through the GUI. Also, MATLAB Grader has a strict execution time limit of 60 seconds (which includes running the reference solution, learner solution, and all assessment tests). Due to the way that the "sim" command is currently supported, complex models, or models with long runtimes are not supported.
If you are willing to provide feedback on how you would like to incorporate Simulink models into automated assessments in MATLAB Grader, please contact your account representative.
  2 Comments
Silvio
Silvio on 23 Oct 2023
Dear Jeff, the evaluation of a Simulink model cannot simply rely on the assessment of the simulation response. The 'Simulink grader' should also check the correctness of the Simulink scheme and its design, depending on the logic of the developed structure.
Jeff Alderson
Jeff Alderson on 23 Oct 2023
Could you be more specific? How would you define “correctness” of a Simulink model? What do you mean by “logic of the developed structure?” Could you provide some rubrics or examples of models you have assessed, with specific attributes you are looking to be present in order to determine correctness?

Sign in to comment.

More Answers (0)

Communities

More Answers in the  Distance Learning Community

Categories

Find more on Event Functions in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!