MATLAB: How write a function that takes a matrix and period omega

fftfunctionsmatrixperiod

function F = fftfuntion(D, omega)
%Input: a matrix D ∈ RN×2, Di = (xi,yi), and the period ω
check = 0;
x = D(:,1);
y = D(:,2);
end
I need to write a function that takes as input a matrix D RN×2, Di = (xi,yi), and the period ω. Here is what I have so far. Am I on the right track?

Best Answer

Hi Prathik,
You are on the right track itself.
Ensure that you define the output variable F and use omega input in the function.
Regards,
Sriram
Related Question