Discretize a topographic profile described by a degree-9 polynomial

I have a 2D topographic profile of sand dunes (height vs. distance) described (in a simplified way) as a polynomial. I need to discretize it into 37 chunks. How do I do that? (I got the polynomial by using "fit" and "coefvalues")

 採用された回答

Kirby Runyon
Kirby Runyon 2015 年 8 月 21 日

0 投票

Use feval to evaluate the function at the desired x locations.
discrete_polynomial_values=feval(fitted_polynomial,x_positions);

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangePolynomials についてさらに検索

質問済み:

2015 年 8 月 21 日

回答済み:

2015 年 8 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by