Results 1 to 3 of 3

Math Help - plots in matlab

  1. #1
    Newbie
    Joined
    Apr 2013
    From
    england
    Posts
    1

    plots in matlab

    hi i need some help on matlab plots. I am trying to make a plot, taking values from a matrix. when i use the plot function i take a graph that the lines are straight, from one point to the other. How can i make those lines curved?
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Member
    Joined
    Apr 2012
    From
    Erewhon
    Posts
    178
    Thanks
    119

    Re: plots in matlab

    Quote Originally Posted by micimi View Post
    hi i need some help on matlab plots. I am trying to make a plot, taking values from a matrix. when i use the plot function i take a graph that the lines are straight, from one point to the other. How can i make those lines curved?
    Cubic spline interpolation:

    Code:
    x = 0:10;
    y = sin(x);
    xx = 0:.25:10;
    yy = spline(x,y,xx);
    plot(x,y,'o',xx,yy)
    For more info google "help matlab plot spline curve" and take the first hit.

    .
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Member
    Joined
    Apr 2012
    From
    Erewhon
    Posts
    178
    Thanks
    119

    Re: plots in matlab

    deleted duplicate post

    .
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. MATLAB: Coloring surf-plots
    Posted in the Math Software Forum
    Replies: 0
    Last Post: May 20th 2010, 09:08 AM
  2. Probably Plots
    Posted in the Advanced Statistics Forum
    Replies: 3
    Last Post: March 14th 2010, 11:43 AM
  3. Matlab help plots, finding nth number....
    Posted in the Math Software Forum
    Replies: 12
    Last Post: March 10th 2010, 08:25 PM
  4. Log-Log plots!!
    Posted in the Calculus Forum
    Replies: 0
    Last Post: November 9th 2009, 10:38 AM
  5. MatLab plots with legends.
    Posted in the Math Software Forum
    Replies: 3
    Last Post: February 28th 2009, 01:08 PM

Search Tags


/mathhelpforum @mathhelpforum