generate 11x11x11 symmetric matrix from 6x6x6 matrix
Show older comments
Hello,
I'm slowly going mad trying to accomplish something I feel is actually rather simple.
I've got a 6x6x6 matrix which I would like to be symmetric around all the principal axes about the point (1,1,1), thus making me an 11x11x11 matrix. Rather than having to do this the long way (and I have quite a few arrays to do this on), is there a quick command that would do this for me, perhaps some combination of fliplr/flipud?
Thanks,
Jim
4 Comments
José-Luis
on 7 Nov 2012
I am not sure I understand what you mean. For instance, in two dimensions, what result would you expect from:
a=[1 2; 3 4];
Jan
on 7 Nov 2012
[6x6x6] is not a "matrix", but an array. Matrices are 2 dimensional. The term "symmetric" is not defined for 3D arrays. What is a "principal axes about a point"? Axes are lines, therefore "about" a point is not clear to me. What is "the long way"? Do we have a chance to guess this?
Jim O'Doherty
on 7 Nov 2012
Edited: Jim O'Doherty
on 7 Nov 2012
Jan
on 7 Nov 2012
And Jose-Luis' question would result in:
a = [1 2;
3 4];
b = [4 3 4;
2 1 2;
4 3 4];
You example handles the columns only. But "[6x6x6]->[11x11x11]" implies, that the rows should be handled also. Am I right?
Accepted Answer
More Answers (0)
Categories
Find more on Matrices and Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!