I have the correct code to solving this question, but I was wondering why in line 2 there were the numbers 1,2,4,5? I do not understand why those specific numbers are there.
% Output a third-order polynomial function with the coefficients as the
% input variables
x = 0:10;
output = polynomial(x,1,2,4,5); % HELP HERE
% Convert the function to a function handle
poly_handle = @polynomial;
output2 = poly_handle(x,1,2,4,5);

댓글 수: 1

Star Strider
Star Strider 2019년 4월 30일
I cannot find a built-in function called ‘polynomial’ in the online documentation.
Are you asking about writing the function, or help on using it?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Polynomials에 대해 자세히 알아보기

질문:

2019년 4월 30일

댓글:

2019년 4월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by