how to transform my input in n-dimensions

Dear All,
I need to rotate hyper-rectangle in 4-dimensions
but I got error Error using maketform>validate_matrix (line 317) The final column of A must consist of zeroes, except for a one in the last row. Error in maketform>affine (line 163) A = validate_matrix( A, 'affine' );
I want to transform the matrix v and their is no zeroes final column in v.
regards

 採用された回答

Matt J
Matt J 2014 年 10 月 28 日
編集済み: Matt J 2014 年 10 月 28 日

0 投票

maketform is complaining that the final column of trans is not [0;0;0;...;1], contrary to what the documentation demands for the case when trans is (N+1)x(N+1). You should examine the calculation of trans to see why not, and fix it.

3 件のコメント

Matt J
Matt J 2014 年 10 月 29 日
I don't understand too much of what you've posted, but if your affine transformation is
y=A*x+b
where x and its transformation y are column vectors, then trans is supposed to be
trans=[A b].' ;
or,
trans=[A b; 0 0 0... 1].'
imola
imola 2014 年 10 月 30 日
編集済み: imola 2015 年 2 月 17 日
Dear Matt,
it suppose v in my code is A and its size is 16x4 so its not square even if I add [0 0 0... 1] as last column for it.
thank you very much for pay attention and reply.
regards
Matt J
Matt J 2014 年 10 月 30 日
it suppose v in my code is A and its size is 16x4 so its not square even if I add [0 0 0... 1] as last column for it.
That would mean that after performing the rotation, the dimension of the array has changed, which is impossible. So, you've constructed v incorrectly.

サインインしてコメントする。

その他の回答 (0 件)

質問済み:

2014 年 10 月 28 日

編集済み:

2015 年 2 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by