Results 1 to 2 of 2

Math Help - differentiate function

  1. #1
    Newbie
    Joined
    Apr 2010
    Posts
    23

    differentiate function

    Code:
    function func(f)
    
    fx=inline(f);
    
    fdx = diff(fx);
    
    end
    Iam getting an error

    ??? Error using ==> diff
    Function 'diff' is not supported for class 'inline'.

    Error in ==> newton at 5
    fdx = diff(fx);

    How can i resolve this issue

    Please help ( iam using MATLAB)
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by AUCC View Post
    Code:
    function func(f)
    
    fx=inline(f);
    
    fdx = diff(fx);
    
    end
    Iam getting an error

    ??? Error using ==> diff
    Function 'diff' is not supported for class 'inline'.

    Error in ==> newton at 5
    fdx = diff(fx);

    How can i resolve this issue

    Please help ( iam using MATLAB)
    inline defines a numeric function diff requires a symbolic function

    CB
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 2
    Last Post: June 5th 2009, 09:55 AM
  2. Replies: 3
    Last Post: May 25th 2009, 09:39 AM
  3. Differentiate the function
    Posted in the Calculus Forum
    Replies: 1
    Last Post: October 30th 2008, 06:49 PM
  4. 2. Differentiate the following function
    Posted in the Calculus Forum
    Replies: 8
    Last Post: February 12th 2008, 08:06 PM
  5. Differentiate the following function
    Posted in the Calculus Forum
    Replies: 6
    Last Post: February 12th 2008, 07:58 PM

Search Tags


/mathhelpforum @mathhelpforum