I'd like to change the width of my fit plot along the lines of:
plot(fit, 'LineWidth', WidthSpec)
Unfortunately, when I try plotting the data and fit simultaneously like:
plot(fit, 'LineWidth', WidthSpec, XData, YData)
I get an error message saying
??? Error using ==> cfit.plot at 52
EXCLUDEDATA has greater length than XDATA.
Plotting both without specification of the width like
plot(fit, XData, YData)
works just fine.
Try to store the returned handle and adjust the width using that:
h = plot(fit, ...);
set(h, 'LineWidth',2)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With