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!

 Akzeptierte Antwort

Matt J
Matt J am 21 Apr. 2021

2 Stimmen

printmsg("Hello World")
Hello World
function printmsg(msg)
disp(msg)
end

Weitere Antworten (0)

Kategorien

Mehr zu Simulink finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 20 Apr. 2021

Beantwortet:

am 21 Apr. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by