Prev: ??? Undefined function or method 'gt' for input arguments of type 'sym'.
Next: plotting 4D data
From: maryam on 14 Jul 2010 02:10 Hi everybody, I want to convert a symbolic varibale in to decimal form, for this I have used below command: beta=sym(beta,'d'); but there is an error like this: ??? Error using ==> sym.sym Second argument d not recognized. Error in ==> deepak3 at 31 beta=sym(beta,'d'); thanks for helping me
From: us on 14 Jul 2010 04:50 "maryam " <maryam_tayefi(a)yahoo.com> wrote in message <i1jkbt$oub$1(a)fred.mathworks.com>... > Hi everybody, > I want to convert a symbolic varibale in to decimal form, for this I have used below command: > beta=sym(beta,'d'); > but there is an error like this: > > ??? Error using ==> sym.sym > Second argument d not recognized. > > Error in ==> deepak3 at 31 > beta=sym(beta,'d'); > thanks for helping me firstly, do NOT use BETA as a var name as it's a ML stock function... now, proper syntax - according to the docs .... S = sym(A,flag) converts a numeric scalar or matrix to symbolic form. .... val=pi/3; % <- a numeric value... sval=sym(val,'d') % sval = 1.047197551196597631317786181171 % <- a SYM obj... us
From: Walter Roberson on 14 Jul 2010 08:58 maryam wrote: > Hi everybody, > I want to convert a symbolic varibale in to decimal form vpa() if you want to return a high-precision symbolic number double() if you want to convert to a floating-point number.
|
Pages: 1 Prev: ??? Undefined function or method 'gt' for input arguments of type 'sym'. Next: plotting 4D data |