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

4 次查看(过去 30 天)
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
iter number of iterations size i got 51 71 3
i upload it you can check this function thanks

请先登录,再进行评论。

回答(2 个)

Sulaymon Eshkabilov
What is the size of wavelet, ang?

Sulaymon Eshkabilov
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