フィルターのクリア

MATLAB computations on variables?

1 回表示 (過去 30 日間)
Hassan Taymuree
Hassan Taymuree 2021 年 10 月 28 日
コメント済み: Walter Roberson 2021 年 10 月 28 日
Is it possible to conduct MATLAB operations on just a matrix of variables? For example, if I wanted to compute the inverse of matrix
A = [a b; c d]
without assigning any values to any of the 4 variables just to get a general form. Thanks in advance!

回答 (1 件)

Chris
Chris 2021 年 10 月 28 日
編集済み: Chris 2021 年 10 月 28 日
The symbolic toolbox is great for stuff like this.
syms a b c d
A = [a b;c d]
A = 
inv(A)
ans = 
  1 件のコメント
Walter Roberson
Walter Roberson 2021 年 10 月 28 日
Caution: the size of the matrix expands quite rapidly for larger matrices.
syms M [4 4]
inv(M)
ans = 

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeFormula Manipulation and Simplification についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by