From: Juliette Salexa on 28 Dec 2009 22:27 Hello, I want to remove a bunch of elements from a 4-d array. Particularly, I want to remove all of these elements: totals(1,7:20,:,:) But totals(1,7:20,:,:)=[] of course doesn't work because the LHS is a 3D array and the RHS is just a scalar. Is there some way to set them all to 0 without for loops ? I've seen REPMAT being used to do similar things with 2D arrays, but I still couldn't figure out how to do this without a loop
|
Pages: 1 Prev: OFDM over Fading Channel with ideal Compensation Next: find non-zero elements in N-D array |