필터 지우기
필터 지우기

How to calculate a 3D-array-matrix?

조회 수: 1 (최근 30일)
Max
Max 2016년 3월 15일
편집: Star Strider 2016년 3월 15일
Hello,
I would like to calculate a matrix which should be consists out of three dimensions. Lets be R_m_boot(i,:) a ix1000 matrix. I´ve tried the write following code, but it doesn´t work.
for l=1:1:length(z_boot);
mu(i,:) = R_m_boot;
sigma_R_m_boot(i,l) = (std(z_boot(:,l))/(sqrt(N)));
% First trial
f_norm = (normpdf(z(:,l),mu(i,l),sigma_R_m_boot(i,l)))';
f_normal = [f_normal; f_norm];
--> but: how can I get the 3.rd dimension (parameter i)
% Second trial
f(l,:,i)=(normpdf(z(:,l),mu(i,l),sigma_R_m_boot(i,l)));
end
Can somebody help me, please?
  댓글 수: 1
Vaclav Rimal
Vaclav Rimal 2016년 3월 15일
Have you tried preallocating your resulting matrix first?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Propagation and Channel Models에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by