Path: news.mathworks.com!newsfeed-00.mathworks.com!newscon02.news.prodigy.net!prodigy.net!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!d30g2000prg.googlegroups.com!not-for-mail
From:  P <prashanthramu@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: syms and vpa problem
Date: Fri, 10 Aug 2007 12:24:32 -0000
Organization: http://groups.google.com
Lines: 88
Message-ID: <1186748672.689298.283440@d30g2000prg.googlegroups.com>
References: <1186516859.503046.118710@22g2000hsm.googlegroups.com>
NNTP-Posting-Host: 152.15.180.44
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Trace: posting.google.com 1186748673 29397 127.0.0.1 (10 Aug 2007 12:24:33 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 10 Aug 2007 12:24:33 +0000 (UTC)
In-Reply-To: <f9cjo3$7cq$1@fred.mathworks.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: d30g2000prg.googlegroups.com; posting-host=152.15.180.44;
Bytes: 4119
Xref: news.mathworks.com comp.soft-sys.matlab:423369


On Aug 8, 10:25 am, "Steven Lord" <sl...@mathworks.com> wrote:
> "P" <prashanthr...@gmail.com> wrote in message
>
> news:1186548206.565623.216510@k79g2000hse.googlegroups.com...
>
>
>
> > On Aug 7, 9:48 pm, "Steven Lord" <sl...@mathworks.com> wrote:
> >> "P" <prashanthr...@gmail.com> wrote in message
>
> >>news:1186516859.503046.118710@22g2000hsm.googlegroups.com...
>
> >> > Hi all,
>
> >> > I have a variable called
>
> >> > sym_dPhi =
> >> > -282270057375923/2361183241434822606848*cos(phis
> >> > +2835403426559781/1125899906842624)-5849622991223293/18889465931478580854784*cos(phis
> >> > +1649123417284613/281474976710656)+8867307977828847/75557863725914323419136*cos(phis
> >> > +1667188769632673/281474976710656)-6776253911855553/18889465931478580854784*cos(phis
> >> > +5867111522062989/9007199254740992)+7154406299740559/75557863725914323419136*cos(phis
> >> > +6355945788037667/1125899906842624)
>
> >> > where phis is created as syms phis.
>
> >> > vpa(sym_dyPhi,5) yields me
> >> > ans =
>
> >> > [ empty sym ]
>
> >> > Why ?
>
> >> Do you have a typo in your command or in your posting?  In the first
> >> output,
> >> your variable is named sym_dPhi, while in your command it's sym_dyPhi.
> >> If
> >> you had a variable named sym_dyPhi that was empty, VPA would return an
> >> empty
> >> sym.  Alternately, if the line in this posting has a typo and you're
> >> actually computing vpa(sy_dPhi, 5), what is phis at the time you call
> >> VPA?
>
> >> --
> >> Steve Lord
> >> sl...@mathworks.com
>
> > Hi Steve,
>
> > Thanks for replying !
>
> > Sorry about my initial post. I guarantee no typos in my script.
>
> > when I call "phis", its still a sym ... meaning I have not substituted
> > at value. I do that in the next step using subs(sym_dyPhi,some_value).
>
> > What next ?
>
> I think you're going to need to post:
>
> the content of the sym_dyPhi variable
> the content of the phis variable
> the value you're substituting into sym_dyPhi
> the output of "subs(sym_dyPhi, <the value you're substituting in>)"
>
> --
> Steve Lord
> sl...@mathworks.com

SOLVED THE MYSTERY !

Rather than providing more on this ... let me tell you guys, when this
happens ! IT happens when MATLAB stops the execution of my code and
goes to some wierd state. I am not able to call or use many functions
examples of which include vpa, subs, tic ... toc etc.

It gives me a wrong error ! It says my code is erroneous but I would
not agree with that cause in a different machine with different
version, the script runs fine !

http://groups.google.com/group/comp.soft-sys.matlab/browse_thread/thread/4ac1bcb548e064e1/3124207eb0564fcb#3124207eb0564fcb

That new post is the new problem I am facing related to this !

Thanks to all !
Super Thanks  !
P