Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Making functions with 'inline' command in matlab

  1. Sep 9, 2007 #1
    hi everybody... i'm new here, and i'm here 'cause i'm having some trouble with matlab
    i was trying to integrate a function, so i first defined the function with the inline command:
    now matlab says nothing if you write the function with this command, but it makes it after, when you decide to do some operation... that happens to me when i try to integrate using the quad command, and matlab throws those red letters saying Error...
    i may be making some syntaxis mistakes, that's why i'm asking here for some help

    by the way, i want to do this integral
    [itex]\int_0^{\frac{\pi}{2}} \frac{ds}{\sqrt{1-0.25\sin^2(s)}}[/itex]
    Last edited: Sep 9, 2007
  2. jcsd
  3. Sep 17, 2007 #2


    User Avatar

Share this great discussion with others via Reddit, Google+, Twitter, or Facebook