?? repltest.m
字號:
function rep=repltest
% REPLTEST Replicate test function. (Utility Function)
% REPLTEST determines which direction Matlab replicates a single
% number using the : operator.
% Author: Craig Borghesani
% 2/17/94
% Copyright (c) 1995-98 by The MathWorks, Inc.
% $Revision: 1.4 $
% perform replicating test with one number
x=5;
v=ones(1,5);
% newx should be a row vector with dimensions 1x5
newx = x(v);
[r,c]=size(newx);
rep=1;
% if r > 1 then matlab is replicating incorrectly
if r>1, rep=0; end
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -