Simplify matrix using symbolic matrix

조회 수: 6 (최근 30일)
YY
YY 2022년 12월 14일
답변: KSSV 2022년 12월 14일
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

답변 (1개)

KSSV
KSSV 2022년 12월 14일
syms X O
A = [X O O ; O 2*X O ; O O X]
A = 

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by