About the transpose for genmat

1 view (last 30 days)
jingwen
jingwen on 16 Jan 2013
Hello, genmat means Generalized matrix withtunable parameters, we can create such combinations using any of the arithmetic operators +, -, *, /, \, and ^. Link the example in matlab, a = realp('a',-1); b = realp('b',3);M = [1 a+b;0 a*b],when we do the transpose for M, it works; But if we set a = realp('a',eye(2)); b = realp('b',ones(2));M = [eye(2) a+b;ones(2) a*b], when we do the transpose for M: M.', it can not work, so ,how to do it if I want do the transpose for a control design block?
Thank you
  2 Comments
José-Luis
José-Luis on 16 Jan 2013
This sounds like homework.
jingwen
jingwen on 16 Jan 2013
No, I have to use the transpose of a matrix to calculate the pseudo-inverse in the simulation with systune when the matrix is not invertible.The problem comes out like "Only static, scalar-valued Control Design blocks can be transposed". Just like the above easy example, for the a is a number, it works, but if a is matrix, is doesn't work.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!