행렬 선언에 대해 (미지수 포함)
38 views (last 30 days)
Show older comments

행렬 A 처럼 미지수가 포함된 행렬을 선언하고자 하는데 어떻게 해야하지요?
A =[ 0 0 0 0; -V 0 0 0; 0 0 0 1; 0 -w^2 w^2 0] 이렇게 하고 싶은데 ...
이렇게만 하면 변수가 안된다고 나오던데...
행렬식이나 행렬의 제곱 같은 것을 편하게 구하고자 합니다.
0 Comments
Answers (1)
Mahesh Taparia
on 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 선적 서류 비치 페이지의 링크를 참조하십시오.
See Also
Categories
Find more on Particle & Nuclear Physics in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!