MATLAB: How can i generate a function using this points function If i got x=[1,3,8,25,45,23]; and y=[25,24,13,69,25,75]; Best Answer x = [1,3,8,25,45,23];y = [25,24,13,69,25,75];p = polyfit(x, y, 5) Related SolutionsMATLAB: Cubic Spline Fit-Just confirm the code right. You can verify this byplot(X,Y,,'.',x,y);legend('Samples','Spline') MATLAB: Self-written function does not work when changing input names Have you defined xnew and ynew before calling the function rline(). The name of input to the function at the definition and calling time does need to be same. Try thisxnew = 1:10;ynew = xnew.^2;rline(xnew, ynew); Related QuestionGenerate vector from fixed pointHow to add two probability density functions efficientlyHow to find value on a curve for different xHow to find the equation of a graph after getting Xdata and YdataIf statement not working
Best Answer