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

11 次查看(过去 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 CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!