3rd Party Toolbox in MATLAB Grader

Hi, I want to use a 3rd party toolbox for my course in MATLAB grader. Is that possible?

 Accepted Answer

Cris LaPierre
Cris LaPierre on 26 Aug 2020
Edited: Cris LaPierre on 6 Apr 2021
MATLAB Grader does not currently provide a way for you to easily install third-party toolboxes. That is good feedback that I will share internally. Out of curiosity, which toolbox are your trying to add?
A possible workaround for now is to upload the files and functions the students will need to a single "template" problem using the Add File feature. For the best student experience, you should upload all the scripts and functions they would use to solve any problem. Identify all scripts and functions they will encounter or might try to use, and collect them in one place on your computer for easy uploading.
Then when creating problems that use this toolbox, use the Add Problem screen to create a copy of this template. This way, you will only have to upload the files once.
Note that each upload must be less than 5 Mb, but you can continue uploading until all the necessary files are added. This effectively places the files in the current folder, allowing students to use them naturally in their solution.

8 Comments

Hi, Thank you for the response. I want to use Robotics Toolbox by Prof.Peter Corke.
Let me try the solution you suggested.
Cris LaPierre
Cris LaPierre on 26 Aug 2020
Edited: Cris LaPierre on 29 Aug 2020
I was wondering as much. Peter Corke has used this same approach to use his toolbox in his MOOCs.
Hi.
Sorry. But uploading all files of Peter Corke's RTB is neither a solution nor a workaround. If it is not possible to use own toolboxes (files in a folder with subfolders) in MATLAB Grader, MATLAB Grader is useless. And yes, I guess that in Peters' MOOC the Grader is also used. How? @Cris, you should be able to get the proper information about this. This would shortcut oru discussion.
We have had the Campus License for a few months and we are trying to use this feature in our courses. This is now quickly doomed to failure. This is really very sad. I hope that Matwhorks will react very quickly.
Basically the problem is that the scripts are running on the Mathworks server. Why can't you just upload a directory with a startup script? In the end such an instance will be executed for every user for the duration of the test or task. I imagine this to be relatively simple.
Regards, Jörg
The solution Peter used in his MOOCs is given at the top of this discussion. He identified the functions his students would use throughout the course, and uploaded just those files to each problem (not every file).
This feedback has been shared internally. In the meantime, I would suggest reaching out to your campus' MathWorks representative for additional assistance.
Hi,
Yes, the only posible solution as of now is to upload relevent function files using Add files feature.
Let me explain what I did. I removed all the unnecesarry files(Images, stl files, simulink files etc..) from the toolbox directory, then compressed and zipped it because a single upload file limit is 5MB. Then in the grader reference solution and locked lines of the learner template, few lines of code was added to unzip and add the directory path in the current grader environment. This way for every assignment I just have to use same zipped directory (Or make a copy of this asignment every time) irrespective of my problem statement.
Hope this helps
The fact that MATLAB Grader does not provide a way to install third party toolboxes or at least source the files on Gihub, for example, has been a great limitation for the diffusion of the Grader in our University; i.e. we have prepared a series of exercises that the students cannot solve without installing the FSDA toolbox.
In this situation, I suggest you contact customer support.
I have the same problem. I want to use a toolbox that consists of different directories and subdirectories. Is there any progress?

Sign in to comment.

More Answers (0)

Communities

More Answers in the  Distance Learning Community

Categories

Find more on Automotive in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!