could anyone help me to solve the error in the image attached

2 次查看(过去 30 天)
could anyone help me to solve the error in the image attached

采纳的回答

Walter Roberson
Walter Roberson 2018-1-8
As we explored with you a while ago, you are allowing your array to go empty early, so sz is coming out 0, so your code is coming out as randi([1 0], ...) . (The same thing would happen when the array gets down to a single entry, since you divide the size by 2)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by