📄 yvector.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -