Maitryc
Newbie level 1
Sir,
I am doing a project by Matlab Simulink version( R2013 ).
Here the output from the matlab function is y of [1*64] dimension.But I want it to be of [64*64].
The code of matlab function is given below :
Please tell me how to change the y dimension from [1*64] to [64*64] ?
Regards
Maitry
I am doing a project by Matlab Simulink version( R2013 ).
Here the output from the matlab function is y of [1*64] dimension.But I want it to be of [64*64].
The code of matlab function is given below :
Code:
function y = fcn(u)
u=64;
size2 = ceil( log2(64));
size2 = 2^size2;
x = randn( 1, size2 );
f = fft( x );
n = 1:(size2/2+1);
n = sqrt( n );
f(1:size2/2+1)=f(1:size2/2+1)./n;
f(size2/2+2:size2) = real( f(size2/2:-1:2)) -1i*imag(f(size2/2:-1:2));
y = ifft( f );
y = real( y(1:64) );
%#codegen
y = u;
Regards
Maitry
Last edited by a moderator: