How to space points with a function?

조회 수: 2 (최근 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 CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by