Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Internet & the Web (https://www.askmehelpdesk.com/forumdisplay.php?f=177)
-   -   Matlab Help Please! (https://www.askmehelpdesk.com/showthread.php?t=15201)

  • Nov 23, 2005, 12:51 PM
    brad sue
    Matlab Help Please!
    Hi,

    Can someone help me with this question:

    Define a general function

    heunstep(f,tcurr,tnext,xcurr,par) that will take one step of Heun's
    method to solve a system of first order initial value problems.

    f is the handle to a function for evaluating the first derivatives.
    tcurr is the current value of the independent variable, tnext is the
    value of the independent variable at which the solution is sought,
    xcurr is a column vector containing the current values of the
    dependent variables, and par is a vector containing any additional
    parameters required in the evaluation of f.

    heunstep should return a column vector containing the values of the
    dependent variables at tnext. Design heunstep so that if par is the
    empty matrix, f will be evaluated at t and x by feval(f,t,x) while
    if par is not empty, f is evaluated at t and x by feval(f,t,x,par
    ).

    I am stuck with question for few days . Please I would
    Appreciate if I ca have some help

    Brad

  • All times are GMT -7. The time now is 10:48 AM.