How to do an iterative problem involving two unknowns and an integral

1 visualización (últimos 30 días)
Hoda Hassan
Hoda Hassan el 2 de Dic. de 2020
Respondida: David Hill el 2 de Dic. de 2020
I want to solve this function to obtian a value for y and V using initial values the following ranges:
y=[0.005-0.05]
V=[10-20]
integral[(10y-30)/(1.5-15y]=300V-1500yV-260y+8
limits of the integral are from 0 to y

Respuestas (1)

David Hill
David Hill el 2 de Dic. de 2020
%find integral, then V
y=.005:.00001:.05;
for k=1:length(y)
I(k)=integral(@(x)(10*x-30)./(1.5-15*x),0,y(k));
V(k)=(I(k)+260*y(k)-8)/(300-1500*y(k));
end
plot(y,V);%does not appear V is in the range specified for the range provide for y

Categorías

Más información sobre Troubleshooting in Polyspace Products for Ada en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by