How we can take polynomial of n variable as input.?
Show older comments
How we can take polynomial of n variable as input.?I want to take input from command window by user.The polynomial should be of n-Dimensional and n-variable ,n-degree. Thanx in Advance..
Answers (1)
Azzi Abdelmalek
on 20 Apr 2014
Edited: Azzi Abdelmalek
on 20 Apr 2014
The polynomial is represented by its coefficients, just ask for a vector of polynomial coefficients
c=input('input the vector c representing the polynomial coefficients in descending order')
2 Comments
Azzi Abdelmalek
on 20 Apr 2014
Post an example
Categories
Find more on Polynomials in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!