以下、コードとエラーメッセージです。ブートストラップ共分散行列と平均を計算しようとしています。一貫した寸法が得られない理由は何ですか?
よろしく、
RawReturn = csvread('Raw return data.csv');
bootstat = bootstrp(1000, @(x)[mean(x), cov(x)], RawReturn);
-------------------------------------------------------------
Error using horzcat
Dimensions of matrices being concatenated are
not consistent.
Error in @(x)[mean(x),cov(x)]
Error in bootstrp (line 167)
bootstat = feval(bootfun,bootargs{:});
Error in Efficient_frontier (line 2)
bootstat = bootstrp(1000, @(x)[mean(x), cov(x)],
RawReturn);
Caused by:
Unable to evaluate BOOTFUN with the supplied
arguments.