leftof.m

来自「code of an ADC implementation woith matl」· M 代码 · 共 12 行

M
12
字号
function y=leftof(p,a,b)%function y=leftof(p,a,b)%Return 1 if the point p is to the left of the line ab.%For a n x 2 list of points p, return a vector of results.%% Author: Richard Schreier, Oregon State University. <schreier@ece.orst.edu>%Translate to the origin and do the checkp = p - a(ones(1,size(p,1)),:);b = b-a;y= b(1)*p(:,2) > b(2)*p(:,1);

⌨️ 快捷键说明

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