필터 지우기
필터 지우기

Error in the determinant line

조회 수: 1 (최근 30일)
Philosophaie
Philosophaie 2017년 9월 21일
편집: Walter Roberson 2017년 9월 21일
Error in detA line:
syms Ex Ey Ez c Bx By Bz
A=sym(zeros(4,4));
A=[0 -Ex/c -Ey/c -Ez/c; Ex/c 0 -Bz By; Ey/c Bz 0 -Bx; Ez/c -By Bx 0 ];
detA=det(A);
  댓글 수: 2
James Tursa
James Tursa 2017년 9월 21일
편집: Walter Roberson 2017년 9월 21일
Works for me:
>> detA=det(A)
detA =
(Bx^2*Ex^2)/c^2 + (By^2*Ey^2)/c^2 + (Bz^2*Ez^2)/c^2 + (2*Bx*By*Ex*Ey)/c^2 + (2*Bx*Bz*Ex*Ez)/c^2 + (2*By*Bz*Ey*Ez)/c^2
John D'Errico
John D'Errico 2017년 9월 21일
편집: Walter Roberson 2017년 9월 21일
I wonder if you defined a variable named det?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by