Thread Subject: symbolic partials

Subject: symbolic partials

From: Steve

Date: 14 Oct, 2007 21:30:31

Message: 1 of 1

Ahh, yes, you are correct. However, I was not complete in
the description of the problem. What I'm looking for is
how to take partials with respect to symbols that are
functions of time.

syms x y
x=sym('x(t)')
y=sym('y(t)')
f=x*y
diff(f,x)=error

I need the symbols to be functions of time so I can
differentiate, etc. in previous steps. Is there a way to
do this without converting all symbols that are functions
of time back to simply their variables?

Thanks,
Steve


dsv <deflagrator@gmail.com> wrote in message
<1192227295.371965.273400@q5g2000prf.googlegroups.com>...
> I seem to be able to differentiate perfectly fine. I am
running Matlab
> 2006Rb.
>
> syms x y
> f=x*y;
> diff(f,x)
>
> ans =
>
> y
>
> -dsv
>
> On Oct 12, 4:36 pm, "Steve "
<steveDEL.bachmeier...@yahoo.com> wrote:
> > Oops, I meant that diff(f,'x') gives me zero. So,
> >
> > f=x*y
> > diff(f,'x')
> > ans=0
> >
> > I'm looking for
> > ans=y
> >
> > Ideas?
> >
>

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread
 

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