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
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!