Interactive tutor using app designer

2 ビュー (過去 30 日間)
tyler seudath
tyler seudath 2021 年 1 月 4 日
コメント済み: Cris LaPierre 2021 年 1 月 4 日
Good day Everyone,
I am working on an interactive tutor application using MATLAB app designer and one of the objectives is to create coding exercises within the application. Is it possible to prompt the user to enter code and to give feedback on it?
Thank you,
TS
  2 件のコメント
Rik
Rik 2021 年 1 月 4 日
編集済み: Rik 2021 年 1 月 4 日
That depends on what kind of feedback you want to give. There is no real reason why you would not be able to replicate something like Onramp in a Matlab app. It will just take a lot of work.
You might also be interested in a different strategy: using a unit testing framework, which is described in this blog by Loren Shure.
Cris LaPierre
Cris LaPierre 2021 年 1 月 4 日
There is also MATLAB Grader, which allows you design coding problems that are assessed automatically and allow you to provide real-time feedback.

サインインしてコメントする。

回答 (1 件)

Maximilian Schönau
Maximilian Schönau 2021 年 1 月 4 日
What you will need for this is evil "eval".
Eval can calculate whatever the student has given you. You can catch and return errors to the student with "try / catch" and you can give a positive feedback if the created variable / solution / plot of the student is the one you desire.
  1 件のコメント
Maximilian Schönau
Maximilian Schönau 2021 年 1 月 4 日
If the students task are as simple as "define a variable called x with the value 4" you could also just compare the input of the student with your correct solutions.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDownloads についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by