代码搜索:Built-In
找到约 2,787 项符合「Built-In」的源代码
代码结果 2,787
www.eeworm.com/read/140851/13058689
m myones.m
function T = myones(sizes)
% MYONES Like the built-in ones, except myones(k) produces a k*1 vector instead of a k*k matrix,
% T = myones(sizes)
if length(sizes)==0
T = 1;
elseif length(sizes)
www.eeworm.com/read/140851/13058725
m myrand.m
function T = myrand(sizes)
% MYRAND Like the built-in rand, except myrand(k) produces a k*1 vector instead of a k*k matrix,
% T = myrand(sizes)
if length(sizes)==0
warning('myrand[]');
T =
www.eeworm.com/read/140851/13058732
m myreshape.m
function T = myreshape(T, sizes)
% MYRESHAPE Like the built-in reshape, except myreshape(T,n) == reshape(T,[n 1])
% T = myreshape(T, sizes)
if length(sizes)==0
return;
elseif length(sizes)==1
www.eeworm.com/read/140851/13058862
m myismember.m
function p = myismember(a,A)
% MYISMEMBER Is 'a' an element of a set of positive integers? (much faster than built-in ismember)
% p = myismember(a,A)
%if isempty(A) | a < min(A) | a > max(A) % s
www.eeworm.com/read/140851/13058924
m myrepmat.m
function T = myrepmat(T, sizes)
% MYREPMAT Like the built-in repmat, except myrepmat(T,n) == repmat(T,[n 1])
% T = myrepmat(T, sizes)
if length(sizes)==1
T = repmat(T, [sizes 1]);
else
T =
www.eeworm.com/read/138798/13211500
m mysize.m
function sz = mysize(M)
% MYSIZE Like the built-in size, except it returns n if M is a vector of length n, and 1 if M is a scalar.
% sz = mysize(M)
%
% The behavior is best explained by examples
www.eeworm.com/read/138798/13211619
m isemptycell.m
function E = isemptycell(C)
% ISEMPTYCELL Apply the isempty function to each element of a cell array
% E = isemptycell(C)
%
% This is equivalent to E = cellfun('isempty', C),
% where cellfun is a
www.eeworm.com/read/138798/13211626
m myones.m
function T = myones(sizes)
% MYONES Like the built-in ones, except myones(k) produces a k*1 vector instead of a k*k matrix,
% T = myones(sizes)
if length(sizes)==0
T = 1;
elseif length(sizes)
www.eeworm.com/read/138798/13211656
m myrand.m
function T = myrand(sizes)
% MYRAND Like the built-in rand, except myrand(k) produces a k*1 vector instead of a k*k matrix,
% T = myrand(sizes)
if length(sizes)==0
warning('myrand[]');
T =