Equations
조회 수: 1 (최근 30일)
이전 댓글 표시
Is it possible to solve an integral equation in matlab? I am writing a script for calculating some parameters in lake dynamics and one of the equation is the Schmidt stability:
S=(g/As).*int_{0}^{Zd}((Z-Zv).*rho.*Az)dz
where dz refers to partial z so integrate with respect to z.
If I have all of the variables which fit into the equation how do I go about solving it in matlab.
thanks
댓글 수: 0
답변 (1개)
Andrei Bobrov
2011년 11월 7일
variant 1
S = ...;
g = ...;
As = ...;
Zv = ...;
rho = ...;
Az = ...;
out = fzero(@(Zd)S-g/As.*quad(@(Z)(Z-Zv).*rho.*Az,0,Zd),0);
please read doc fzero and doc quad
variant 2
syms S g As Z Zv rho Az Zd real
out1 = solve(S-g/As*int((Z-Zv)*rho*Az,Z,0,Zd),Zd)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Calculus에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!