Function with one input and no outputs

382 ビュー (過去 30 日間)
Heather Torella
Heather Torella 2021 年 4 月 20 日
回答済み: Matt J 2021 年 4 月 21 日
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 日
printmsg("Hello World")
Hello World
function printmsg(msg)
disp(msg)
end

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatched Filter and Ambiguity Function についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by