필터 지우기
필터 지우기

Split a matrix into a sum of other matrices

조회 수: 5 (최근 30일)
radu
radu 2013년 4월 3일
Hello,
I Have a big matrix (100x100) comprised of both numerical and symbolic variables. Is there any way I can split the matrix above into a sum of matrices of the same size?
example: A=[2*x1, 5*x2; 4*x3, x4]
A= x1*[2, 0; 0 0] + x2*[0, 5; 0 0] + x3*[0, 0; 4 0] + x4*[0, 0; 0 1]
I would hate to do this by hand, so any help to simplify my problem would be greatly appreciated.
Thank You

답변 (2개)

Matt Kindig
Matt Kindig 2013년 4월 3일
How is your matrix currently defined? Are you really combining both numeric elements (e.g. doubles) and symbolic elements (created by sym() function) together?

radu
radu 2013년 4월 3일
short answer: Yes, I have both numerical values(double) and symbols (created with symbolic math toolbox).
At first the matrix was comprised just of symbols (created with syms() ) but in order to simplify the matrix I added values for the constant ones. The rest are time dependent.
The idea is that i do not know the exact values of the symbolic variables, but I know their boundaries.

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by