MATLAB: Error using reshape, Size arguments must be real integers.

reshape

Hi, please, i have a question. every time i run this function on Matlab
my=repmat(mean(reshape(Y,T,N)),T,1);
i got error message saying that:
Error using Reshape.
(size arguments must be real intergers).
How can i solve this problem please ?

Best Answer

You could ensure that T, and N are positive whole numbers...