4.375

4.4 | 8 ratings Rate this file 79 downloads (last 30 days) File Size: 1.38 KB File ID: #3983

SYMPOLY2SYM

by Tim Farajian

 

20 Sep 2003 (Updated 22 Sep 2003)

No BSD License  

Similar to poly2sym but can handle symbolic coefficients and indeterminate variables.

Download Now | Watch this File

File Information
Description

Similar to poly2sym but can handle symbolic coefficients and indeterminate variables specified as equations.
 
SymPoly2Sym('a*x^2 + b*x + c','x') = [a b c]

SymPoly2Sym('a*sin(x)^2 + b*sin(x) + c','sin(x)') = [a b c]

Required Products Symbolic Math Toolbox
MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (8)
11 Apr 2004 Sarjoun Skaff

Enabled the manipulation of large expression without a problem.

16 May 2004 Peter Harrington

Crashes when given linear and constant terms. This bug can easily be fixed.

Ax+b or b % causes the function to crash. It should be able to handle any level of polynomial include first and zero order.

Works great for second order and higher

12 Jul 2005 Francisco Araya

It does not work for second order or less...

08 Aug 2006 Adrian Kaats

Nice!

30 Sep 2006 Babak Asghari

I found this function extremely useful for extracting coefficients of different variables in a large parametric expression. Thank u!

07 Dec 2006 Andreas Bogala

very useful! Thanks

03 May 2007 Patrick Vogelsang

That's what I needed!!

15 Jul 2008 Davide Costa

it is great!!! very very powerfull

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
symbolic math Tim Farajian 22 Oct 2008 07:07:46
sym Tim Farajian 22 Oct 2008 07:07:46
symbolic Tim Farajian 22 Oct 2008 07:07:46
polynomial Tim Farajian 22 Oct 2008 07:07:46
coefficient Tim Farajian 22 Oct 2008 07:07:46
coefficients Tim Farajian 22 Oct 2008 07:07:46
extract Tim Farajian 22 Oct 2008 07:07:46
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com