MATLAB: Matrix ifft tranform

ifftmatrixtransform

hi!
i am new to matlab so the solution to my problem will bw easy for you.
i have a matrix with size (12,4), and i want to create a new matrix withe the same size with the ifft result of its row.
my matrix is
1 1 -1 1
1 1 1 1
-1 -1 -1 1
1 -1 -1 -1
1 -1 -1 -1
-1 -1 1 1
1 1 1 -1
1 1 1 1
-1 1 1 -1
-1 -1 1 1
-1 1 -1 1
1 1 1 1

Best Answer

m = [1 1 -1 1 % data matrix
1 1 1 1
-1 -1 -1 1
1 -1 -1 -1
1 -1 -1 -1
-1 -1 1 1
1 1 1 -1
1 1 1 1
-1 1 1 -1
-1 -1 1 1
-1 1 -1 1
1 1 1 1];
M = ifft(m, [], 2) % transform each row