Creating an array of probability distribution objects

I would like to create an array of different distribution fits to use them later. I am not sure how to do something like this:
for i=1:10
pdArray(i)=fitdist(errs, 'tlocationscale');
end

 採用された回答

José-Luis
José-Luis 2013 年 5 月 24 日

0 投票

You could use a cell array:
for i=1:10
pdArray{i}=fitdist(errs, 'tlocationscale');
end

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by