Fresnel Integrals Upper Bound x

I cannot figure out how to get the upper bound of the integral to be an x. The question is to calculate S(x)= integral of sin(t.^2) for 0<=x<=4 (use spacing of 0.05. It wants the same thing to be done to the cos(t.^t) and both functions be plotted in the same figure. A few ways I have tried are below.
1. I'm 99% sure the plot is not supposed to be a straight line, so that's why I think this one is wrong. Because of this I only did S.
syms t x
s=sin(t.^2)
S=int(s,t)
fplot('S', [0 4])
2. This one I am getting numeric values, which I do not think I want. Also nothing is being plotted on the graph.
S=quad('sin(t.^2)',0,4) C=quad('cos(t.^2)',0,4)
x=linspace(0, .05, 4) y1=S y2=C
figure plot(x,y1,x,y2)
Any help would be great, Thanks

Answers (0)

Categories

Find more on Mathematics in Help Center and File Exchange

Asked:

on 27 Apr 2015

Community Treasure Hunt

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

Start Hunting!