Equations
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Andrei Bobrov
am 7 Nov. 2011
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 Kommentare
Siehe auch
Kategorien
Mehr zu Error Functions finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!