Solving Matrices with Symbolic Variables
古いコメントを表示
I am trying to figure out how to solve a problem such as [A]{X}={0} where [A] is a numerical matrix such as
[1 2 3 4]
[5 6 7 8]
[9 0 1 2]
and {X} is a symbolic matrix with a single numeric value such as
[1x1 sym; 1x1 sym; 1x1 sym; 1]
that is:
[a]
[b]
[c]
[1]
Is there a way to find a,b,c such that [A]{X}={0}
2 件のコメント
Shivam Prajapati
2020 年 6 月 2 日
null(A)
Walter Roberson
2020 年 6 月 2 日
null() by itself does not work for the case where one or more of the X vectors are known constants, as is required by the Question.
採用された回答
その他の回答 (2 件)
Kaixiang Wang
2016 年 11 月 30 日
編集済み: Kaixiang Wang
2016 年 11 月 30 日
Simply use MATLAB symbolic toolbox and the solve() function.
syms a b c
A=[1 2 3 4;5 6 7 8;9 0 1 2]
X=[a;b;c;1]
sol=solve(A*X)
2 件のコメント
Shivam Prajapati
2020 年 6 月 2 日
Null(A) % null is matlab command
Walter Roberson
2020 年 6 月 2 日
null() by itself does not work for the case where one or more of the X vectors are known constants, as is required by the Question.
Walter Roberson
2011 年 11 月 30 日
編集済み: John Kelly
2014 年 5 月 27 日
0 投票
3 件のコメント
Charles
2023 年 11 月 13 日
how to downvote this answer?
Walter Roberson
2023 年 11 月 13 日
In particular these days, that page leads to https://www.mathworks.com/help/symbolic/linear-algebra.html
Dyuman Joshi
2023 年 11 月 13 日
@Charles, Why exactly do you want to that?
カテゴリ
ヘルプ センター および File Exchange で Number Theory についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!