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

행렬 A 처럼 미지수가 포함된 행렬을 선언하고자 하는데 어떻게 해야하지요?
A =[ 0 0 0 0; -V 0 0 0; 0 0 0 1; 0 -w^2 w^2 0] 이렇게 하고 싶은데 ...
이렇게만 하면 변수가 안된다고 나오던데...
행렬식이나 행렬의 제곱 같은 것을 편하게 구하고자 합니다.

Respuestas (1)

Mahesh Taparia
Mahesh Taparia el 19 de Nov. de 2019

0 votos

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 comentario

Hyo jong Cho
Hyo jong Cho el 21 de Nov. de 2019
thanks for your helping!

Iniciar sesión para comentar.

Categorías

Más información sobre Resizing and Reshaping Matrices en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 15 de Nov. de 2019

Comentada:

el 21 de Nov. de 2019

Community Treasure Hunt

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

Start Hunting!