Function with one input and no outputs

381 vues (au cours des 30 derniers jours)
Heather Torella
Heather Torella le 20 Avr 2021
Réponse apportée : Matt J le 21 Avr 2021
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!

Réponse acceptée

Matt J
Matt J le 21 Avr 2021
printmsg("Hello World")
Hello World
function printmsg(msg)
disp(msg)
end

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by