Definite integral of two arrays with 400 values each.

3 次查看(过去 30 天)
Hello
I have to calculate S/P ratio by this formula. The problem is that i have no idea how to itegrate it. S, V and V' are arrays with 400 values, for example V = [2e-4 2.2821e-4 2.6109e-4 2.9936e-4 ... 1.499e-5]. K'm and K are constants. Lower limit of the integral is 380 and upper is 480.

采纳的回答

Matt J
Matt J 2022-5-7
编辑:Matt J 2022-5-7
I would imagine you have a vector of 400 lambda values as well. Then you could do,
numerator=trapz(lambda, S.*Vprime);
denominator=trapz(lambda, S.*V);
ratio=numerator/denominator*(Kmprime/Km)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Mathematics 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by