ebtisam almehmadi - MATLAB Central
photo

ebtisam almehmadi


Last seen: 3年以上 前 2021 年からアクティブ

Followers: 0   Following: 0

統計

MATLAB AnswersFrom 07/21 to 03/25Use left and right arrows to move selectionFrom 07/21Use left and right arrows to move left selectionTo 03/25Use left and right arrows to move right selectionUse TAB to select grip buttons or left and right arrows to change selection100%
MATLAB Answers

5 質問
0 回答

ランク
151,625
of 297,805

評判
0

コントリビューション
5 質問
0 回答

回答採用率
40.0%

獲得投票数
0

ランク
 of 20,473

評判
N/A

平均評価
0.00

コントリビューション
0 ファイル

ダウンロード
0

ALL TIME ダウンロード
0

ランク

of 159,570

コントリビューション
0 問題
0 解答

スコア
0

バッジ数
0

コントリビューション
0 投稿

コントリビューション
0 パブリック チャネル

平均評価

コントリビューション
0 ハイライト

平均いいねの数

  • Thankful Level 2
  • Thankful Level 1

バッジを表示

Feeds

表示方法

質問


I need to fix the code by using for loop to plot the relative error E in 2 norm versus n.
%%%% Taylor ploynomials pn(x) x=2:0.01:3; f = 1./x; p1=1/2.5; p2= 1/2.5 -(4/25)*(x-2.5); p3= 1/2.5 -(4/25)*(x-2.5) + (8/1...

3年以上 前 | 1 件の回答 | 0

1

回答

質問


I'm trying to replace "t" in the code with ti=a + (b−a)*((xi+1)/2) to plot the Lagrange polynomial interpolation with Chebyshev points.
clear n = 8; % the order of the polynomial a = 1; % left end of the interval b = -1; % right end of the interval h = (b - a)...

3年以上 前 | 1 件の回答 | 0

1

回答

質問


I want to modify the code to plot the Lagrange polynomial interpolation with Chebyshev points. Map the n+ 1 Chebyshev interpolation points from [-1,1] to [2,3]
clear n = 3; % the order of the polynomial a = 2.0; % left end of the interval b = 3.0; % right end of the interval h = (b -...

3年以上 前 | 1 件の回答 | 0

1

回答

質問


I'm trying to modify the code to plot the error E for n=1,2,3... I want to use for loop but I'm not sure how to use it. Please help
clear n = 3; % the order of the polynomial a = 2.0; % left end of the interval b = 3.0; % right end of the interval h = (b -...

3年以上 前 | 1 件の回答 | 0

1

回答

質問


when I run the code, I only get one plot for f. I need to have a plot for p as well. I need to code this part p(x) =f(x0)l0(x) +f(x1)l1(x) +f(x2)l2(x) to make it works
clear all n = 3; % the order of the polynomial a = 2.0; % left end of the interval b = 3.0; % right end of the interval...

3年以上 前 | 1 件の回答 | 0

1

回答