필터 지우기
필터 지우기

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 CenterFile Exchange에서 Formula Manipulation and Simplification에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by