怎样才能让matlab函数的参数像C++里的指针传递一样呢? 例如: 函数文件: function nargout= f( x ) x=x+1; end 主函数中: x=1; f(x); x 我希望最后得到的x为2,该怎么办呢?