phase calculation and plot

1 次查看(过去 30 天)
aditi
aditi 2013-7-12
can anyone please help me understand this function...m new to matlab
function y=folding(x,p,c);
if nargin==2,
c=1;
elseif nargin==3,
% do nothing
else
error('Illegal number of input arguments');
end
jd_col = length(x(1,:)) + 1;
y = zeros(length(x(:,1)),jd_col);
TEMP = x(:,c);
r = TEMP;
TEMP = TEMP./p-floor(TEMP./p);
y = x;
y(:,c:c) = TEMP;
y(:,jd_col) = r;
y = sortrows(y,c);

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by