The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: sym2poly error
Replies: 2   Last Post: Jul 28, 2014 11:32 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Madeleine Fort

Posts: 2
Registered: 7/15/14
sym2poly error
Posted: Jul 15, 2014 3:59 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I'm evaluating a circuit in matlab, and I need to create a transfer function from an cell array of data. The circuit data is saved as a cell array and I can get the ratio of the output voltage to the input voltage.

This is the relevant section of code:
[n,d] = numden(eval(v_3/V));

transH = tf(sym2poly(n),sym2poly(d));

the weird part is that this works for some sets of v_3 and V and not for other sets. I am still getting an array for n and d as well.

The error I am receiving is:

Error using sym/sym2poly (line 28)
Not a polynomial.

Error in CircuitGA (line 349)
n = sym2poly(n);

Any help/alternative functions I can use?

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.