How to space points with a function?

1 回表示 (過去 30 日間)
GABRIELA ANDERSON
GABRIELA ANDERSON 2021 年 2 月 14 日
コメント済み: GABRIELA ANDERSON 2021 年 2 月 14 日
I am attempting to plot the function exp(x) on the interval [0,2] using 1001 evenly spaced points and Chebyshev points. It was easy to define the evenly spaced points
x = linspace(0,2,1001)
I am given the function for Chebyshev poins for i = 1 to n. How do I use that function to space my points? I am not sure what to use as n, is it 2 because the interval ends on 2 or is there a different number I should use for n.
  2 件のコメント
Walter Roberson
Walter Roberson 2021 年 2 月 14 日
Is it possible that the actual equation is
GABRIELA ANDERSON
GABRIELA ANDERSON 2021 年 2 月 14 日
Yes! That is my bad, missed the opening parenthesis on the bottom

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by