Error using integral (line 85). A and B must be floating-point scalars.
Show older comments
I=.3*pi:.1*pi:.8*pi;
plot(I,sin(I)./I+integral(@(t) (1-cos(t))./t, 0, I)
Error using integral (line 85)
A and B must be floating-point scalars.
Accepted Answer
More Answers (0)
Categories
Find more on Function Creation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!