least squar matlab code

approximate below function by least square in matlab.
y=0.5u^2+5u+2
a) the training data is equally disturbuted in [0,10]
b) no training data is available in the interval (3,7)
plot function y based u
and the error bar
thanks:)

Answers (0)

Communities

More Answers in the  Power Electronics Control

Categories

Asked:

on 12 Nov 2019

Community Treasure Hunt

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

Start Hunting!