필터 지우기
필터 지우기

how to compute this in matlab

조회 수: 1 (최근 30일)
chen fire
chen fire 2016년 9월 8일
편집: Mikael Erkkilä 2016년 9월 15일
hey there, I wonder how to write a matlab program that computes this: integral ( J(r') curl r' dv').
in words: its a triple integral, for any r' (which is 3 dimentional), J is 3D. let's say that i have 50 different r', i thoght to run a loop from 1 to 50 that adds the curls, will it work in matlab?
thank you very much !

답변 (1개)

Mikael Erkkilä
Mikael Erkkilä 2016년 9월 15일
편집: Mikael Erkkilä 2016년 9월 15일
You have basically a triple integral which can be solved by integral3. This means you have to first calculate J(r)*curl(r) analytically, so taking vector product from nabla times r to get the curl. Then you take the dot product with J(r) where you will end up with a scalar function. Finally you define this function in an own .m-file or as anonymous function before putting everything into integral3.
Give some more information on the exact function, if you need more help

카테고리

Help CenterFile Exchange에서 Operating on Diagonal Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by