3d array indexing problem

4 次查看(过去 30 天)
J.S.
J.S. 2018-7-3
评论: Jan 2018-7-4
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 个评论
Jan
Jan 2018-7-4
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.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by