Simplify matrix using symbolic matrix

7 visualizaciones (últimos 30 días)
YY
YY el 14 de Dic. de 2022
Respondida: KSSV el 14 de Dic. de 2022
Hi guys,
I have a matrix like:
[1 0 0 0 0 0
0 1 0 0 0 0
0 0 2 0 0 0
0 0 0 2 0 0
0 0 0 0 1 0
0 0 0 0 0 1];
How can I represent the matrix in a symbolic way:
[X 0 0
0 2X 0
0 0 X];
where 0 here means 2x2 zero matrix, X means 2x2 identity matrix.
Thanks in advance

Respuestas (1)

KSSV
KSSV el 14 de Dic. de 2022
syms X O
A = [X O O ; O 2*X O ; O O X]
A = 

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by