I want to integrate this function
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
khaled Abdelghafar
am 20 Mär. 2022
Beantwortet: Star Strider
am 20 Mär. 2022
x=0:50;
y=exp(-x./25).*sqrt((25+x)/(25-x));
int(y,x,0,50)
i want to integrate this function
0 Kommentare
Akzeptierte Antwort
Star Strider
am 20 Mär. 2022
x = 0:50;
y = @(x) exp(-x./25).*sqrt((25+x)/(25-x));
int_y = integral(y,0,50)
x = 0:50;
y = @(x) exp(-x./25).*sqrt((25+x)/(25-x));
int_y = cumtrapz(x,y(x));
figure
plot(x, real(int_y), x,imag(int_y))
grid
legend('Real','Imaginary', 'Location', 'best')
.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Numerical Integration and Differentiation 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!