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

44 ビュー (過去 30 日間)
Hyo jong Cho
Hyo jong Cho 2019 年 11 月 15 日
コメント済み: Hyo jong Cho 2019 年 11 月 21 日
행렬 A 처럼 미지수가 포함된 행렬을 선언하고자 하는데 어떻게 해야하지요?
A =[ 0 0 0 0; -V 0 0 0; 0 0 0 1; 0 -w^2 w^2 0] 이렇게 하고 싶은데 ...
이렇게만 하면 변수가 안된다고 나오던데...
행렬식이나 행렬의 제곱 같은 것을 편하게 구하고자 합니다.

回答 (1 件)

Mahesh Taparia
Mahesh Taparia 2019 年 11 月 19 日
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 件のコメント
Hyo jong Cho
Hyo jong Cho 2019 年 11 月 21 日
thanks for your helping!

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

カテゴリ

Help Center および File ExchangeParticle & Nuclear Physics についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!