func2.m

来自「实现matlab很多功能的源代码」· M 代码 · 共 10 行

M
10
字号
function average = func(vector)
% FUNC2 A simple function with a single help line.
%
%	Usage of this function:
%	output = func2(input)
%	"output" is the average of the input vector "input".

%	Roger Jang, 19991123.

average = sum(vector)/length(vector);	% 璸衡キА

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?