Use input(prompt) in a Matlab Grader question

4 visualizaciones (últimos 30 días)
Teresa Perdicoulis
Teresa Perdicoulis el 19 de Feb. de 2021
Comentada: Teresa Perdicoulis el 19 de Feb. de 2021
I am new in Matlab Grader. I am trying to build a collection of Learning Matlab for dummies in Matlab Grader.
When I use
prompt = 'Indique o valor do primeiro: ';
num1 = input(prompt);
does not work.
What can i do to read the value of variables?

Respuestas (1)

Cris LaPierre
Cris LaPierre el 19 de Feb. de 2021
It is not possible to build problems that interact with the user (input, for example).
You could consider creating a function-type problem, and then call the function with the desired input value.

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by