행렬 선언에 대해 (미지수 포함)

110 vues (au cours des 30 derniers jours)
Hyo jong Cho
Hyo jong Cho le 15 Nov 2019
Commenté : Hyo jong Cho le 21 Nov 2019
행렬 A 처럼 미지수가 포함된 행렬을 선언하고자 하는데 어떻게 해야하지요?
A =[ 0 0 0 0; -V 0 0 0; 0 0 0 1; 0 -w^2 w^2 0] 이렇게 하고 싶은데 ...
이렇게만 하면 변수가 안된다고 나오던데...
행렬식이나 행렬의 제곱 같은 것을 편하게 구하고자 합니다.

Réponses (1)

Mahesh Taparia
Mahesh Taparia le 19 Nov 2019
Hi Hyo
The unknown variables can be declared using syms function. For your case, consider the below code:
syms V
syms w
A = [1 1 1 1; -V 0 0 0; 0 0 0 1; 0 -w ^ 2 w ^ 2 0];
For more details, you can refer to the below link of syms documentation page:
(KOREAN VERSION Using Google Translate)
안녕
수없는 변수는 syms 함수를 사용하여 선언 할 수 있습니다. 귀하의 경우 아래 코드를 고려하십시오.
syms V
syms w
A = [1 1 1 1; -V 0 0 0; 0 0 0 1; 0 -w ^ 2 w ^ 2 0];
자세한 내용은 아래 syms 선적 서류 비치 페이지의 링크를 참조하십시오.
  1 commentaire
Hyo jong Cho
Hyo jong Cho le 21 Nov 2019
thanks for your helping!

Connectez-vous pour commenter.

Catégories

En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!