MATLAB Answers


Using Data fit app

Asked by Darpan Verma on 8 Mar 2019
Latest activity Commented on by Darpan Verma on 12 Mar 2019
I have created a createfit.m by having my curve fit using data fitting app in MATLAB. The MATLAB code file is created as a function. Now if I hit run I get the following error: "Not enough input arguments.
Error in createFit (line 18)
[xData, yData] = prepareCurveData( x, y );"
How can I use my curve fit code which I have generated? I have attached a picture of my code.
Screen Shot 2019-03-07 at 10.12.51 PM.png


Can I know whether x and y is loaded in workspace?
Hi Mounika, Thanks I think thats where error came from. it got resolved. Thank you :)

Sign in to comment.




0 Answers