How to get a program to display something from a function?

 Respuesta aceptada

Adam Danz
Adam Danz el 21 de Sept. de 2018
Editada: Adam Danz el 21 de Sept. de 2018
Remove the semicolon at the end of
counter = counter + 1
The value of 'counter' will then display every time it's updated.
A more visually appealing method is to use fprintf
count = counter + 1;
fprintf('count = %d\n', count);

Más respuestas (0)

Categorías

Más información sobre Arduino Hardware en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 21 de Sept. de 2018

Editada:

el 21 de Sept. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by