sftab2ch.m
来自「数字通信第四版原书的例程」· M 代码 · 共 26 行
M
26 行
function sftab2chk(xindex,yindex,table);
%SFTAB2CHK Checks input to SFTABLE2 for correctness.
% SFTAB2CHK(XINDEX,YINDEX,TABLE) makes sure that all of the arguments
% to SFTABLE2 are appropriate.
% Copyright (c) 1990-94 by The MathWorks, Inc.
% Ned Gulley
% 3-9-92
xlen = length(xindex);
ylen = length(yindex);
[m,n] = size(table);
if m ~= xlen,
error('XINDEX must have the same number of elements as TABLE has rows');
end;
if n ~= ylen,
error('YINDEX must have the same number of elements as TABLE has columns');
end;
if any(diff(xindex) <= 0),
error('XINDEX must increase monotonically');
end;
if any(diff(yindex) <= 0),
error('YINDEX must increase monotonically');
end;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?