Filter löschen
Filter löschen

MATLAB computations on variables?

1 Ansicht (letzte 30 Tage)
Hassan Taymuree
Hassan Taymuree am 28 Okt. 2021
Kommentiert: Walter Roberson am 28 Okt. 2021
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!

Antworten (1)

Chris
Chris am 28 Okt. 2021
Bearbeitet: Chris am 28 Okt. 2021
The symbolic toolbox is great for stuff like this.
syms a b c d
A = [a b;c d]
A = 
inv(A)
ans = 
  1 Kommentar
Walter Roberson
Walter Roberson am 28 Okt. 2021
Caution: the size of the matrix expands quite rapidly for larger matrices.
syms M [4 4]
inv(M)
ans = 

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Formula Manipulation and Simplification finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by