MATLAB: ??? Undefined function or method ‘ddft’ for input arguments of type ‘double’.

ddft

x=[0 1 2 1; 1 2 3 2; 2 3 4 3; 1 2 3 2];
[m,n]=size(x);
y=zeros(1,m);
for i=1:m
y(i)=x(1,m);
ddft(y(i));
end
ddft(z)=y;
N=length(y);
for n=o:N-1;
for k=0:N-1;
w=exp^(((2).*(-1j).*pi.*n.*k)./N);
end
end

Best Answer

In this line ...
ddft(y(i));
you are trying are trying to access a variable or function named ddft. This variable or function has not been defined. To my knowledge, it is not a MATLAB-defined function.