How to obtain a cell of one symbolic matrix?

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)

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

Thanks, but it's not what I'm looking for.
The entry (i,j) of matrix Q is a function of time t so that I can solve ODE symbolically.

This question is closed.

Asked:

on 4 Nov 2013

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!