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?
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.