[B, src] = eprload ('data.DTA');
plot(B, src + 0.1);
i = quad2d([B, src + 0.1], 3480, 3560 , -10, 10);
I need to integrate the function from the file twice. I don't quite get, why the code won't work...

 채택된 답변

the cyclist
the cyclist 2021년 11월 2일

0 개 추천

The first argument to quad2d needs to be a function handle.
I am not familiar with eprload, but its output looks like (x,y) data. I think you might need to use the trapz function instead of quad2d, to do a numerical integration.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Numerical Integration and Differentiation에 대해 자세히 알아보기

제품

릴리스

R2021b

질문:

2021년 11월 2일

댓글:

2021년 11월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by