What this warning means and how to fix it?

2 ビュー (過去 30 日間)
Nisar Ahmed
Nisar Ahmed 2021 年 6 月 15 日
コメント済み: Nisar Ahmed 2021 年 6 月 16 日
Warning: Integer operands are required for colon operator when used as index.
> In Ex11_Bayes_AVO_Inversion>build_W (line 263)
In Ex11_Bayes_AVO_Inversion (line 83)
LINE 263
S = S0(L+1:nc+L-0,1:nc); %Remove tails
line 83
W = build_W(w,nt);

採用された回答

Sailesh Kalyanapu
Sailesh Kalyanapu 2021 年 6 月 15 日
Hi,
This error means that one or both of the variables L, nc are not integers. Please refer to this for a detailed explanation.
  1 件のコメント
Nisar Ahmed
Nisar Ahmed 2021 年 6 月 16 日
thank you

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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