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

1 回表示 (過去 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 Center および File ExchangeMatrix Indexing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by