Error in untitled (line 3)
81 views (last 30 days)
Show older comments
Sergei Dementev
on 2 Nov 2021
Commented: Sergei Dementev
on 2 Nov 2021
[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...
0 Comments
Accepted Answer
the cyclist
on 2 Nov 2021
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.
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!