function [c d ] = functin_test(a,b)
c = a +b ;
d = b-a ;
end
%函数名称 functin_test
%变量 a b
%返回 c d
[c d] = functin_test(2,4)
[c,d] = functin_test(2,4)
两者都输出:
c =
6
d =
2
function [c d ] = functin_test(a,b)
c = a +b ;
d = b-a ;
end
%函数名称 functin_test
%变量 a b
%返回 c d
[c d] = functin_test(2,4)
[c,d] = functin_test(2,4)
两者都输出:
c =
6
d =
2