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

댓글 수: 2

Patel Mounika
Patel Mounika 2019년 3월 12일
Can I know whether x and y is loaded in workspace?
Darpan Verma
Darpan Verma 2019년 3월 12일
Hi Mounika, Thanks I think thats where error came from. it got resolved. Thank you :)

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Get Started with Curve Fitting Toolbox에 대해 자세히 알아보기

제품

릴리스

R2018b

질문:

2019년 3월 8일

댓글:

2019년 3월 12일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by