Function with one input and no outputs

조회 수: 75 (최근 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 CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by