StackOverflow 文件 MATLAB Language 教程 功能 基礎示例 基礎示例 Created: November-22, 2018 以下 MATLAB 指令碼顯示瞭如何定義和呼叫基本函式: myFun.m : placeholderCopyfunction [out1] = myFun(arg0, arg1) out1 = arg0 + arg1; end終端 : placeholderCopy>> res = myFun(10, 20) res = 30 多個輸出nargin nargout