Results 1 to 2 of 2

Math Help - Writing a program in MATLAB

  1. #1
    Senior Member
    Joined
    Feb 2008
    Posts
    410

    Writing a program in MATLAB

    Hey guys.

    I need to compute and print the results for

    h(x)=(x-1)^8

    at all 101 of the points

    x=0.99,0.99+(.002),0.99+2(.002),\cdots,0.99+100(.0  02).

    Unfortunately, I just started using MATLAB this morning. I've certainly never written a "program" in MATLAB, nor do I know what one would even look like. While I realize that this newbie-ish question must be annoying, I'm at a loss to figure out where to start, so I thought I'd take a stab on these forums, in case anyone has some extra time and is willing to lend a hand.

    Alternatively, if anyone has a link to a sample program similar to this one, that should be helpful enough to get me going.

    Thanks in advance!
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4

    Re: Writing a program in MATLAB

    Quote Originally Posted by hatsoff View Post
    Hey guys.

    I need to compute and print the results for

    h(x)=(x-1)^8

    at all 101 of the points

    x=0.99,0.99+(.002),0.99+2(.002),\cdots,0.99+100(.0  02).

    Unfortunately, I just started using MATLAB this morning. I've certainly never written a "program" in MATLAB, nor do I know what one would even look like. While I realize that this newbie-ish question must be annoying, I'm at a loss to figure out where to start, so I thought I'd take a stab on these forums, in case anyone has some extra time and is willing to lend a hand.

    Alternatively, if anyone has a link to a sample program similar to this one, that should be helpful enough to get me going.

    Thanks in advance!
    x=[0.99:0.002:0.99+100*0.002];
    h=(x-1).^8

    CB
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Writing a program
    Posted in the Advanced Applied Math Forum
    Replies: 0
    Last Post: August 17th 2010, 06:18 PM
  2. Help with my MATLAB DJ program?
    Posted in the Math Software Forum
    Replies: 6
    Last Post: May 3rd 2010, 07:20 AM
  3. Converting an R-program to MATLAB
    Posted in the Math Software Forum
    Replies: 0
    Last Post: November 17th 2009, 07:54 AM
  4. MATLAB program creation help
    Posted in the Math Software Forum
    Replies: 1
    Last Post: November 7th 2009, 07:53 PM
  5. Writing a Program to Create a Table Based on Input
    Posted in the Calculators Forum
    Replies: 1
    Last Post: July 16th 2008, 01:34 AM

Search Tags


/mathhelpforum @mathhelpforum