Function with one input and no outputs

Hello!
I was just wondering if anyone knew how to define a function with one input and no outputs and could maybe give an example? Thank you!

 Respuesta aceptada

Matt J
Matt J el 21 de Abr. de 2021
printmsg("Hello World")
Hello World
function printmsg(msg)
disp(msg)
end

Más respuestas (0)

Categorías

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

Etiquetas

Preguntada:

el 20 de Abr. de 2021

Respondida:

el 21 de Abr. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by