least squar matlab code

6 views (last 30 days)
Nadia Davoudi
Nadia Davoudi on 12 Nov 2019
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

Find more on Dynamic System Models 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!