Plotting a function (Horner Schema)
古いコメントを表示
I am sorry if this question has already been asked, but I am totally new to Matlab and Programming but I need it for my class at university... So the task is to programm the "Horner Schema". This is what I got:
function y = horner(a,x)
n = length(a)-1;
y = zeros(length(x));
for i = n:-1:1
y = y(i)*x+a(i);
end
end
It seems toi work and gives back no errors to me but I don't know, if it gives back the right array.
Anyway, my problem lies within the fact that we should also analyse
in the interval [-1,1] and I have absolutely no idea how to do this.
I am glad for any help that you can give me.
5 件のコメント
madhan ravi
2020 年 7 月 9 日
John D'Errico
2020 年 7 月 9 日
What does analyze mean to you? For example, I tried to get that polynomial to lay down on a couch and discuss its feelings, but I've gotten nothing from it.
Luisa Maria Korb
2020 年 7 月 9 日
Luisa Maria Korb
2020 年 7 月 9 日
madhan ravi
2020 年 7 月 9 日
Ask your teacher/professor what they want you to do, seems like you’re not sure what you have to do.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Text Data Preparation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
