differentiation in matlab of two functions

3 次查看(过去 30 天)
Let
theta=atan(p/q)+pi
a(theta)=exp(2*pi*j*A*[cos(theta);sin(theta)]) where A ,is row vector and p,q,A are known
I need to find the in matlab.Please help me on this

回答(2 个)

Alan Stevens
Alan Stevens 2020-12-3
a = @(theta) exp(2j*pi*A*[cos(theta);sin(theta)]);
dadtheta = @(theta) 2j*pi*A*[-sin(theta);cos(theta)]*a(theta);

Stephan
Stephan 2020-12-3
syms a(theta) p q A
eq1 = a(theta)==exp(2*pi*1i*A*[cos(theta);sin(theta)])
eq2 = theta==atan(p/q)+pi
Deq1 = diff(eq1,theta)
sol = subs(rhs(Deq1),theta,rhs(eq2))
pretty(sol)
  6 个评论
Stephan
Stephan 2020-12-4
Did you notice that you can accept and/or vote for useful answers?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Numerical Integration and Differential Equations 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by