colsum.m
来自「一个关于RBF的神经网络算法」· M 代码 · 共 26 行
M
26 行
function s = colSum(X)% s = colSum(X)%% Outputs a row vector whose elements are the% sums of the columns of X.% Designed to get round the feature of the standard% routine (sum) of summimg row vectors to a scalar.% If colSum is handed a row vector, the same vector% is given back.%% Inputs%% X matrix (m-by-n)%% Output%% s vector (1-by-n)[m,n] = size(X);if m > 1 s = sum(X);else s = X;end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?