Split a matrix into a sum of other matrices
5 ビュー (過去 30 日間)
古いコメントを表示
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
0 件のコメント
回答 (2 件)
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?
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Symbolic Math Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!