如何使用Matlab程序求解极值点(函数表达式有两个符号变...
Afficher commentaires plus anciens
clear all
close all
clc
syms sita1 sita2;
Z=[1 0 0
0 exp(i*2*pi/3) 0
0 0 exp(i*4*pi/3)];
X=[0 0 1
1 0 0
0 1 0];
XZ=X*Z;
[A,V1]=eig(Z);
[B,V2]=eig(X);
[C,V3]=eig(XZ); %求解特征向量;
c=[1/sqrt(3);1/sqrt(3)*exp(i*sita1);1/sqrt(3)*exp(i*sita2)];
CC=[c,c,c];
z=sum(abs(dot(B,CC)))+sum(abs(dot(C,CC)));
%做内积,此后,要对z进行求解极值点,z为sita1,sita2的函数。
%----------------------------------------------------------------------
dzsita1=diff(z,sita1)
dzsita2=diff(z,sita2)
S=solve(dzsita1==1,dzsita2==1,sita1,sita2); %S求解不出来,程序在此中遇到的难题了
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur 编程 dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!