hello, I am new to matlab. I would like to change polynomial z=c1+c2*x+c3*x^2+c4*y+c5*y^2+c6*x*y+c7*x*y^2+c8*x*y+c9*x^2*y*2
to matrix. I have a problem with matrix A to get sum of x,y into A.
for i=1:9
syms x,y
A(i,1)=1;
.
.
A(i,9)=x(i)^2*y(i)^2;
end
Thank you for your time.

답변 (1개)

KSSV
KSSV 2020년 9월 9일
편집: KSSV 2020년 9월 9일

0 개 추천

Read about poly2sym
If this is not you are expecting..read about polyval.

댓글 수: 1

Thin Rupar Win
Thin Rupar Win 2020년 9월 9일
Thank you for your answer, KSSV. But, this is not my expected answer. I would like to build the matrix A with polynomial values ( x and y).

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

카테고리

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

제품

릴리스

R2019b

태그

질문:

2020년 9월 9일

댓글:

2020년 9월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by