From: HollyandIvy He on
I'M trying to get a rayl distribution parameter vector for each section of my divided data.Say, there is my data a column vector A contains 1000 samples, and i treat every 5 samples as a Rayleigh distribution and loonking for a rolling parameter vector, what i write in the command is :

for x1= 1: 1000
belta(x1) = raylfit(A(x1:x1+4);
end

I can't figure out why it only gives a number rather than a vector of the same length of A. Even though I know when x1=1000, there will be no A(1005), but it should only give Nah.

Keen for help.
From: HollyandIvy He on
I think it can't be the problem of raylfit function itself, is that because of my for function or the way I given value to the output?

Any suggestion?