Results 1 to 3 of 3

Thread: Simple MATLAB question

Threaded View

  1. #1

    Thread Starter
    Addicted Member nad_scorp's Avatar
    Join Date
    Feb 2001
    Location
    Inside XML
    Posts
    242

    Simple MATLAB question

    Here is the .m file
    but how can I run it on matlab ??????

    Notes:
    function [k,p,err,P] = fixpt(g,p0,tol,max1)

    % Input - g is the iteration function
    % - p0 is the initial guess for the fixed-point
    % - tol is the tolerance
    % - max1 is the maximum number of iterations
    % Output - k is the number of iterations that were carried out
    % - p is the approximation to the fixed-point
    % - err is the error in the approximation
    % - P'contains the sequence {pn}
    Attached Files Attached Files
    Me "Talented Idiot" by Gtarawneh "He said he's sorry

    Inconsequential is Incommunicable

    The first impression we have
    Is not always the real one
    My reality is not always your
    so my friend....Is life that simple?


    It is called "Israeli occupation forces"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width