필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Optimization

조회 수: 2 (최근 30일)
Charles
Charles 2011년 5월 30일
마감: MATLAB Answer Bot 2021년 8월 20일
*Modified Post*
I have a 3D matrix of this form:
gauss = values(3,3,3)
i.e
gauss(:,:,1) =
0.0155 0.0622 0.0155
0.0622 0.2494 0.0622
0.0155 0.0622 0.0155
gauss(:,:,2) =
0.0622 0.2494 0.0622
0.2494 1.0000 0.2494
0.0622 0.2494 0.0622
gauss(:,:,3) =
0.0155 0.0622 0.0155
0.0622 0.2494 0.0622
0.0155 0.0622 0.0155
What I want to do is create another 3D matrix of larger dimension, i.e of size (10,3,3)
I.e NewMatrix = zeros(10,3,3);
What I want:
NewMatrix(1:3,:,:) = NewMatrix(1:3,:,:) + gauss;
NewMatrix(2:4,:,:) = NewMatrix(2:4,:,:) + gauss;
NewMatrix(4:6,:,:) = NewMatrix(4:6,:,:) + gauss;
:
:
NewMatrix(8:10,:,:) = NewMatrix(8:10,:,:) + gauss;
So essentially I want to use the 'gauss' matrix fill the values of 'NewMatrix'. However, the placement of the matrix 'gauss' in 'NewMatrix' is to be optimized so that the values of 'NewMatrix' are as uniform as possible. Let me know if more clarification is needed. Any suggestion will be appreciated.
  댓글 수: 11
Charles
Charles 2011년 6월 1일
ANYBODY THERE? Make your suggestion pls :-)
Ivan van der Kroon
Ivan van der Kroon 2011년 6월 5일
Just put all weigths zero. I assume this is too trivial. I also noticed you opened a new topic, where you reformulated it for 1-D.

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by