yvector.m

来自「计量工具箱」· M 代码 · 共 27 行

M
27
字号
function B = yvector(y)% PURPOSE: repeats an nx1 vector y n times to form%          an n*n x 1 vector% --------------------------------------------------% USAGE: B = yvector(y)% where: y = an nx1 vector% --------------------------------------------------% RETURNS: B = [y%               y%               .%               y], where there are n of them% --------------------------------------------------% written by: James P. LeSage 2/98% University of Toledo% Department of Economics% Toledo, OH 43606% jpl@jpl.econ.utoledo.edun = length(y);B = y;for i=2:nB = [B;     y];end;

⌨️ 快捷键说明

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