Ask Experts Questions for FREE Help !
Ask
    brad sue's Avatar
    brad sue Posts: 1, Reputation: 1
    New Member
     
    #1

    Nov 23, 2005, 12:51 PM
    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

Check out some similar questions!

Recursive Matlab problem [ 2 Answers ]

Hi, I'm trying to write a matlab program for a recursive sequence. I worked out the sequence right I think but can't get the figures right in the program. Here's the program I have so far: %recursive program for water %dam cycling down to empty Clear Format long A=32; Fprintf(' Week ...


View more questions Search
 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.