⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 find_big.m

📁 计量工具箱
💻 M
字号:
function index = find_big(x,number)% PURPOSE: finds rows where at least one element is > #%          and returns an index to these rows.% ---------------------------------------------------------% USAGE: index = find_big(x,number)% where:      x = a matrix%        number = the criterion% ---------------------------------------------------------% RETURNS: index = a vector of indices to the% rows in the matrix x that contain a least one% element greater than number.% For example: if x = [0 10 1 0 1%                      1 2  3 10 10%                      1 2 3 4 5]%              and number = 9%              index = [1%                       2]                                                                              % ---------------------------------------------------------% SEE ALSO: find_nzip()% --------------------------------------------------------- % written by:% James P. LeSage, Dept of Economics% University of Toledo% 2801 W. Bancroft St,% Toledo, OH 43606% jpl@jpl.econ.utoledo.edu[nobs nvar] = size(x);chk = [];for i=1:nvar;tst = find(x(:,i) > number);chk = [chk        tst];end;index = unique(chk);

⌨️ 快捷键说明

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