How to compute DOT & CURL function together?
조회 수: 7 (최근 30일)
이전 댓글 표시

- I have these data: Ex,Ey,Ez,Hx,Hy,Hz,X,Y,Z (all 3D matrix)
- I first to calculate the curl of each component
- And then calculate the dot product
- [CurlE_x,CurlE_y,CurlE_z] = curl(X,Y,Z,Ex,Ey,Ez);
- E_dot_CurlE = (Ex.*CurlE_x + Ey.*CurlE_y + Ez.*CurlE_z);
- I want to know the above syntax correct or not?
댓글 수: 0
답변 (1개)
Roger Stafford
2014년 1월 26일
That looks good to me. Remember that X, Y, and Z must be monotonic and as produced by 'meshgrid' for 'curl' to work properly.
Also remember that for your discrete arrays, this computation will only be an approximation to the theoretical value.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Thermodynamics & Statistical Physics에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!