I can I use Si and Ci Integral functions in Matlab? I need to use these functions for my Matlab code.

14 views (last 30 days)
Ci(1)

Answers (2)

John D'Errico
John D'Errico on 28 May 2015
Edited: John D'Errico on 28 May 2015
Code for Fresnel sine and cosine on the File exchange has been there for some years now.
  2 Comments
vera Rajan
vera Rajan on 29 May 2015
>> fresnelC(1.38,0) Undefined function 'fresnelC' for input arguments of type 'double'. John thanks, I tried but not working...
John D'Errico
John D'Errico on 29 May 2015
Edited: John D'Errico on 29 May 2015
Um, you need to DOWNLOAD it and put the directory on your search path before you use it! This a basic of tools you will find on the file exchange. MATLAB does not magically know how to use code that it cannot see. Once you have done that...
fresnelC(1.38,0)
ans =
0.56297592577244

Sign in to comment.


Walter Roberson
Walter Roberson on 29 May 2015
If you have the Symbolic Toolbox, the interface to these is sinint and cosint

Tags

Community Treasure Hunt

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

Start Hunting!