Closed
Description
openedon Sep 27, 2013
I suppose the following should work
A=randn(3,3,3)
As=slice(A,:,1,:)
As[:,:]=randn(3,3)
It gives however an error, apparently because the index translation that happens in the subarray setindex!
method does not reshape the 3x3 matrix into a 3x1x3 array.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
No labels