This leads to minc ||Ac − y||, Now for n = 10, xj = 1 + (j − 1)/(n − 1) and yj = e xj , find c1, c2 and c3. Solve problem by using matlab.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
3 comentarios
Jan
el 8 de Feb. de 2022
@Chun Kit NG: This is the question of your homework. But what is your question? The forum will not solve your homework, but if you show your current code and ask a specific question, we assist you to solve it by your own.
Respuestas (1)
Image Analyst
el 8 de Feb. de 2022
Did you code in the equations it told you to? From the question:
n = 10
x = 1 + (1:10 - 1) / (n-1)
y = exp(..........
and then call polyfit() to fit the quadratic? It's literally just 4 lines of code - including the call to polyfit(). I'm confident you can do it!
4 comentarios
Walter Roberson
el 9 de Feb. de 2022
format long g
A = magic(5)
b = [7 3 8 2 4].'
c = A\b
A*c - b
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!