Manipulating a sub-matrix
显示 更早的评论
I have the following way of subarray manipulation. I have an array called arr of dimension rxc, i loop goes from 1 to r-n, j loop goes from 1 to c-n, and I use as:
x=somefn(arr(i:i+n-1,j:j+n-1)(:),a);
I am getting error stating: cannot call or index to a temporary array at the :, please suggest remedy.
1 个评论
Star Strider
2017-5-22
This is not valid MATLAB syntax:
x=somefn(arr(i:i+n-1,j:j+n-1)(:),a);
↑↑↑
Please explain in some detail what you want to do.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Propagation and Channel Models 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!