polynomial curve fitting error
Ältere Kommentare anzeigen
Hi i have a simple problem but strange error. am doing a polynomial curve fitting for two column vectors x and y. i use command "p = polyfit(x,y,3) . It gives me following error
Attempt to execute SCRIPT polyfit as a function:
What could be the possible reason for it. Many thanks
Akzeptierte Antwort
Weitere Antworten (1)
If, for some reasons, you like to name your script "polyfit.m", try adding a prefix to make the filename unique.
Here are some examples:
- myPolyFit.m
- Test1_polyfit.m
- Sumera_polyfit.m
Before saving the filename, you can check if the chosen filename exists in other MATLAB folders or not.
which myPolyFit -all
which PolyFit -all
1 Kommentar
Sumera Yamin
am 5 Apr. 2023
Bearbeitet: Sumera Yamin
am 5 Apr. 2023
Kategorien
Mehr zu Get Started with Curve Fitting Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

