フィルターのクリア

help understanding matlab codes in details

25 ビュー (過去 30 日間)
Shahrin Islam
Shahrin Islam 2018 年 10 月 20 日
回答済み: Malavika P D 2023 年 4 月 25 日
hello everyone. I am new learner of matlab who only knows some basics of programming. I am trying to read and understand some downloaded code. Can anyone please tell me how can I read and understand a code line by line? Please help me. Thanks in advance.

回答 (2 件)

madhan ravi
madhan ravi 2018 年 10 月 20 日

Malavika P D
Malavika P D 2023 年 4 月 25 日
x = [ 5 6 9 11];
y = [12 13 14 16];
L = 0;
for i =1:length(x)
el=1;
for j=1:length(x)
if j~=i
c = poly(x(j))/(x(i)-x(j));
el = conv(el,c);
end
end
L_term = el*y(i);
L = L+L_term;;
end
polynomial = poly2sym(L);
disp(polynomial)

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by