# Help with matlab homework

6 次查看（过去 30 天）
Nguyen2015-2-3

The graph of the function , f(x)=a*x^4+b*x^3+c*x^2+d*x+e, passes through the points (-3, 6.8), (-1.5, 15.2), (0.5, 14.5), (2, -21.2), and (5, 10). Write a script that will prompt for the ordered pairs as inputs and solve five equations with the five unknown constants: a, b, c, d, and e. You need to set up a matrix equation and solve for the unknowns by first finding the inverse of a matrix. Solve the system: y = X * h, for h
##### 6 个评论显示 5更早的评论隐藏 5更早的评论
Nguyen 2015-2-3
What is vander? I cannot find it in my book and my professor has not talked about it.

### 回答（1 个）

Youssef Khmou 2015-2-3

X=[(-3)^4 (3)^3 (3)^2 3 1;
(-1.5)^4 (-1.5)^3 (-1.5)^2 (-1.5) 1;
(0.5)^4 (0.5)^3 (0.5)^2 (0.5) 1;
(2)^4 (2)^3 (2)^2 2 1;
(5)^4 (5)^3 (5)^2 5 1];
##### 4 个评论显示 3更早的评论隐藏 3更早的评论
Youssef Khmou 2015-2-3
correct

### 类别

Find more on Creating and Concatenating Matrices 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!