- #1
afallingbomb
- 16
- 0
Hello,
I'd like to access a column of values from the 4th dimension of a 4D Double array in MATLAB and then save them to a new matrix.
For example:
A = rand(3,3,3,3);
A(1,1,1,:)
gives me:
ans(:,:,1,1) =
0.7077
ans(:,:,1,2) =
0.0669
ans(:,:,1,3) =
0.7794
I want to create a new matrix, B, with those values but specifying B = A(1,1,1,:) results in the same output above. I want a vector in this form:
0.7077
0.0669
0.7794
Thank you!
I'd like to access a column of values from the 4th dimension of a 4D Double array in MATLAB and then save them to a new matrix.
For example:
A = rand(3,3,3,3);
A(1,1,1,:)
gives me:
ans(:,:,1,1) =
0.7077
ans(:,:,1,2) =
0.0669
ans(:,:,1,3) =
0.7794
I want to create a new matrix, B, with those values but specifying B = A(1,1,1,:) results in the same output above. I want a vector in this form:
0.7077
0.0669
0.7794
Thank you!