# With a given set of X and Y values, how to determine (m+jn) for the equation---Y = (a+jb)X^3+(c+jd)X^2+(p+jq)X+(m+jn). X and Y values are in complex form

3 views (last 30 days)

Show older comments

Subhadeep Paladhi
on 19 May 2018

Commented: Subhadeep Paladhi
on 19 May 2018

##### 0 Comments

### Accepted Answer

Ameer Hamza
on 19 May 2018

You can get the values like this

output = [X.^3 X.^2 X.^1 ones(size(X))]\Y

It will return 4 complex numbers. Depending on the number of elements in X and Y, the solution is either unique (if the number of elements in X is equal to 4), one of infinitely many (if the number of elements in X is less than 4) or solution in least square sense (if the number of elements in X is greater than 4).

### More Answers (0)

### See Also

### Community Treasure Hunt

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

Start Hunting!