Re: how to find intersections for a periodic function



BillC. wrote:
>
>
>>How about this:
>
> x=[-pi:.01:pi];
> y1=sin(x);
> y2=.5*x;
> sp=spline(x,y1-y2);
> xn=fnzeros(sp);
>
> intersections=xn(1,:)
Great work BillC.
But just one query. why intersect command is not giving correct
result? it is giving intersection of two vectors.
-kuldeep
.