Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

Re: Question about 'subs'

$
0
0
"Eduardo Montoya" wrote in message <k7pene$ss7$1@newscl01ah.mathworks.com>...
> > No, that was my example. My function is much more complex. So I need to use
> > subs(diff(f,t), {X,t}, (X-value, t-value))
> > where X is a vector.
>
> syms t
> x = sym('x',[3 1])
>
> f = x(1)^2*t^2 + x(2)^2*t^2 + x(3)^2*t^2
>
> subs(subs(diff(f,t),x,ones(3,1)),t,2)


Thanks a lot!!!

Viewing all articles
Browse latest Browse all 19628

Trending Articles