Clear Filters
Clear Filters

3d array indexing problem

4 views (last 30 days)
J.S.
J.S. on 3 Jul 2018
Commented: Jan on 4 Jul 2018
I have a 3 dimensional array with 400 pages composing the third dimension. The coordinates are (y,x,time). [x and y are flipped because of how I am displaying the resulting image afterwards]. I want to select the data contained in (Yi,Xi,:), where Yi and Xi are some numbers less than or equal to the maximum Y and X values, permute it to make it a column,and later compare its entries to those of a column extracted from a two dimensional array. When I create the "variable" three_Drow=3Dmat(Yi,Xi,:), and before I permute it,the workspace says that three_Drow is 1x1x400, type double. Comparing any possible permutation of three_Drow (400x1x1,etc) to the column from the 2D array, with dimensions 400x1, is therefore not possible. Is there any way I can work with (Yi,Xi,:) so that the comparison is possible?
  1 Comment
Jan
Jan on 4 Jul 2018
What does "Yi and Xi are some numbers" mean exactly? Are they scalars or arrays? What do you permute? How do you compare the result? Why is "comparing not possible"? Please post the code and the error message.

Sign in to comment.

Answers (0)

Categories

Find more on Images in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!