What this warning means and how to fix it?
1 view (last 30 days)
Show older comments
Nisar Ahmed
on 15 Jun 2021
Commented: Nisar Ahmed
on 16 Jun 2021
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);
0 Comments
Accepted Answer
Sailesh Kalyanapu
on 15 Jun 2021
Hi,
This error means that one or both of the variables L, nc are not integers. Please refer to this for a detailed explanation.
More Answers (0)
See Also
Categories
Find more on Resizing and Reshaping Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!