how to not exceed limits of the matrix column
2 次查看(过去 30 天)
显示 更早的评论
采纳的回答
José-Luis
2017-9-10
your_array = rand(10,16)
%looping through all columns
for ii=your_array
%ii now contains all values in column
end
4 个评论
José-Luis
2017-9-10
Columns 1-5 of what? You are not indexing into A and that is the array whose columns you are looping on.
Please use the debugger. Place a breakpoint in the line that's giving you grief and look at the arrays you are indexing into.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!