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

4 Ansichten (letzte 30 Tage)
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 Kommentare
Torsten
Torsten am 1 Jan. 2022
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 am 1 Jan. 2022
iter number of iterations size i got 51 71 3
i upload it you can check this function thanks

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Sulaymon Eshkabilov
Sulaymon Eshkabilov am 1 Jan. 2022
What is the size of wavelet, ang?

Sulaymon Eshkabilov
Sulaymon Eshkabilov am 1 Jan. 2022
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

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by