Function with one input and no outputs

81 visualizzazioni (ultimi 30 giorni)
Heather Torella
Heather Torella il 20 Apr 2021
Risposto: Matt J il 21 Apr 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!

Risposta accettata

Matt J
Matt J il 21 Apr 2021
printmsg("Hello World")
Hello World
function printmsg(msg)
disp(msg)
end

Più risposte (0)

Categorie

Scopri di più su Simulink in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by