modify code for polynomial function
5 次查看(过去 30 天)
显示 更早的评论
i try to modify this code but can't pass .please help with proper code
function fh = poly_fun(p)
function polynomial = poly(x)
polynomial = 0;
ii = 1:length(p)
polynomial = polynomial + p(ii).*x.^(ii-1);
end
fh = @poly;
end
2 个评论
Rik
2020-9-8
Unforturnately for Mohaiminul Islam Google cache takes some time to update, so the evidence of his attempt to cheat is foiled. A permalink to what he posted can be found here (will take a few hours to become available).
Removing your question after receiving an answer and help is extremely rude. It is also pointless, because of comments like this enable your teacher to find your post, and because site admins can often restore your edit.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!