Hi guys,
Anyone here who is good with Matlab and very good in maths, cuz I could use some help here
The problem: Make a MATLAB M-file called 'ex3' which calculates for a random n the least squares approach from f(x)= exp(x) on [-1,1]. The command 'ex3(n)' gives as output the grafic drawing of f(x) on [-1.5,1.5] and in one image also the grafic drawing of the n-th least squares approach.
My english is not good enough to express myself in math-language, but I hope you guys understand it
I could really use some help
Thx!
I think I know how to begin: function L = ex3(n). (doesn't have to be L) Someone can help me now?