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!

 采纳的回答

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

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by