Index in position 2 exceeds array bounds. Index must not exceed 1.

조회 수: 4 (최근 30일)
RADWAN A F ZEYADI
RADWAN A F ZEYADI 2022년 1월 1일
답변: Sulaymon Eshkabilov 2022년 1월 1일
Hi, i am tried to obtain output of dpre 51*71*3 i applied for loop but out put still 51 1 3 any help please
Vpsim, Vssim, Rhosim they are 51 1
for k=1:71
for j=1:iter
[Vpsim, Vssim, Rhosim]=applico_RPM_II([Sw_sim Sh_sim Phi_sim]);
dpre(:,k,:)=calcola_dati_pre_stack(Vpsim(:,k),Vssim(:,k),Rhosim(:,k),wavelet,ang); % dato test
end
end
  댓글 수: 6
Torsten
Torsten 2022년 1월 1일
What is the size of what you get back from "calcola_dati_pre_stack" ?
What is "iter" ?
RADWAN A F ZEYADI
RADWAN A F ZEYADI 2022년 1월 1일
iter number of iterations size i got 51 71 3
i upload it you can check this function thanks

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

답변 (2개)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2022년 1월 1일
What is the size of wavelet, ang?

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2022년 1월 1일
Here is a tentative solution with some pre-assumptions:
for k=1:51
for jj=1:61
for ii=1:3
[Vpsim(k), Vssim(k), Rhosim(k)]=applico_RPM_II([Sw_sim(k), Sh_sim(k), Phi_sim(k)]);
dpre(k,jj,ii)=calcola_dati_pre_stack(Vpsim(k),Vssim(k),Rhosim(k),wavelet(jj),ang(ii)); % dato test
end
end

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by