Why does polyfit not exist in r2019b?
1 view (last 30 days)
Show older comments
I cannot seem to get polyfit to work - and it seems like my copy doesn't even think it exists:
>> help polyfit
polyfit is a variable of type double.
>> doc polyfit
polyfit is a variable of type double.
Any help would be appreciated!
0 Comments
Accepted Answer
Adam Danz
on 10 Dec 2019
Edited: Adam Danz
on 10 Dec 2019
It does exist in r2019b. https://www.mathworks.com/help/matlab/ref/polyfit.html
You have a variable with the same name so Matlab no longer has access to the function until you delete the variable. clear('polyfit')
Rename the variable and the problem is solved.
0 Comments
More Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!