differentiation in matlab of two functions

1 visualizzazione (ultimi 30 giorni)
Murali Krishna AG
Murali Krishna AG il 3 Dic 2020
Commentato: Stephan il 4 Dic 2020
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

Risposte (2)

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

Stephan
Stephan il 3 Dic 2020
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 Commenti
Murali Krishna AG
Murali Krishna AG il 4 Dic 2020
Thank u so much,It helped me a lot
Stephan
Stephan il 4 Dic 2020
Did you notice that you can accept and/or vote for useful answers?

Accedi per commentare.

Categorie

Scopri di più su Numerical Integration and Differential Equations in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by