Transpose on ND array is not defined.
15 views (last 30 days)
Show older comments
somebody could help me with this message ???
Transpose on ND array is not defined.
I tried to use the function inhull(testpts,K,tess) but I can't! ??? Error using ==> inhull at 67 testpts and xyz must have the same number of columns
>> size(K)
ans =
1452 3
>> size(testpts)
ans =
32 8 66
2 Comments
Jan
on 24 Feb 2011
What is the error message: "Transpose on ND..." or "testpts and xyz must have..."?
Answers (2)
Jan
on 24 Feb 2011
If you are working with John D'Errico's INHULL, the documentation in the FEX seems to tell, that you need 2D matrices as input. Why is your textpts a 3D array?
2 Comments
Walter Roberson
on 25 Feb 2011
No, it doesn't work for any 'd' dimension. When you are working with a points in higher-dimension space, it is common to represent them as 2D matrix, one row per point, and then the number of columns corresponds to the dimensionality of the points.
Walter Roberson
on 24 Feb 2011
Transpose is only defined for 2D arrays. For arrays of higher dimension, permute() must be used.
If you are working with an image, you have probably inadvertently used a truecolor (RGB) image in a context that needs a binary or grayscale image.
4 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!