How to obtain a cell of one symbolic matrix?
Info
This question is closed. Reopen it to edit or answer.
Show older comments
I'm working on solving symbolic ODE.
syms a11 a12 a21 a22 p11(t) p12(t) p21(t) p22(t) P(t);
A = sym('a%d%d', [2 2])
UA=triu(A);
P=[p11 p12; p21 p22];
UP=triu(P);
Q=UP*UA;
But I have difficulties to obtain the entry (i,j) of matrix Q. Any suggestions? Thanks.
Answers (1)
Azzi Abdelmalek
on 4 Nov 2013
A = sym('a%d%d', [2 2])
UA=triu(A)
P=sym('p%d%d', [2 2])
UP=triu(P);
Q=UP*UA;
Q(2,2)
1 Comment
Y.C.
on 5 Nov 2013
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!