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!

 採用された回答

Matt J
Matt J 2021 年 4 月 21 日

2 投票

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSimulink についてさらに検索

質問済み:

2021 年 4 月 20 日

回答済み:

2021 年 4 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by