Function with one input and no outputs

382 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Matched 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