Instead of using plot() of the fit object, use linspace() to generate a range of x values, and pass the range into the fit object
MyFitResult = fit(....);
x = linspace(0, 2.2);
y = MyFitResult(x) ;
plot(x, y)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!