MATLAB数值域的绘图演算法.doc_第1页
MATLAB数值域的绘图演算法.doc_第2页
MATLAB数值域的绘图演算法.doc_第3页
MATLAB数值域的绘图演算法.doc_第4页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

第四章 数值域的绘图演算法 设A为 n阶复数矩阵, 其数值域(numerical range)为复数子集合 W(A)=x*Ax: xCn, x*x=1.为人所知, 此集合为包含A的固有值的凸集合. 当n=2时, W(A)为一椭圆盘, 其焦距为两个固有值l, m, 短轴长为 |A|22-|l|2- |m|2 之根号. 本章将讨论W(A)的绘图演算法, 重点是方法二与方法三的MATLAB演算法.方法一 :Theorem 1 (7) Let A be an n-square complex matrix. Then W(A) = W(Axy), x,y are o.n. where Axy = x*Ax x*Ay y*Ax y*Ay M2应用 Theorem 1, 只需用BASIC程式即可绘W(A), 参阅7的BASIC程式: step1 随机取两个orthonormal向量 x, y step2 绘椭圆 W(Axy) step3 goto step1重复直到图形成型.方法二 :Theorem 2 (6) Let A be an n-square complex matrix. Then the right vertical supporting line of W(eiqA) is x = l1(q), the maximal eigenvalue of the matrix Hq=(eiqA+e-iqA*)/2应用 Theorem 2绘W(A)边界切线的MATLAB演算法: step1 input A step2 initialize q from 0 to 2p step3 form Hq step4 compute the maximal eigenvalue of Hq step5 draw the line l1(q)e-iq which is the supporting line of e-iq W(eiqA)=W(A) step6 goto step step2 下面我们以矩阵 a= 0 2 0 ; 0 0 1 ; 0 0 3 为例 , 画50条直线,可以看出一曲线与50条直线相切,这个曲线称为50条直线的包络(envelope), 亦即W(A)的边界. clear; a=0 2 0;0 0 1;0 0 3 %a=input(matrix A=) i=sqrt(-1); H=(a+a)/2;K=(a-a)/(2*i); for k=1:50 t=(k/50)*pi; Ht=cos(t)*H-sin(t)*K;Kt=cos(t)*K+sin(t)*H; a1=max(real(eig(Ht); b1=max(real(eig(Kt); a2=min(real(eig(Ht); b2=min(real(eig(Kt); A1=a1 a1 a1;B1=b1 b2 b2; X(:,2*k-1)=cos(t)*A1+sin(t)*B1; Y(:,2*k-1)=-sin(t)*A1+cos(t)*B1; A2=a1 a2 a2;B2=b1 b1 b2; X(:,2*k)=cos(t)*A2+sin(t)*B2; Y(:,2*k)=-sin(t)*A2+cos(t)*B2; end %for plot(X,Y) a = 0 2 0 0 0 1 0 0 3 方法三 :Theorem 3 (3) Let A be an n-square complex matrix. Then the point pq = xq*Axq lies on the boundary of W(A), where xq is an eigenvector of the matrix Hq corresponding to the eigenvalue l1(q)应用 Theorem 3 绘W(A)边界点的MATLAB演算法: step1 input A step2 initialize q from 0 to 2p step3 form Hq step4 compute the maximal eigenvalue l1(q)of Hq and its corresponding eigenvector xq step5 draw the point pq = xq*Axq step6 goto step step2 同样以矩阵a=0 2 0; 0 0 1; 0 0 3为例,下图画50个W(A)的边界点点, 相邻两点连一线, 则此多边行逼近W(A)的边界. clg;clc;clear; axis; axis(square) i=sqrt(-1); %A=input(enter a matrix A= ); %m=input(enter steps m= ); A=0 2 0;0 0 1;0 0 3 m=50; p=; for j=1:m+1 theta=(j-1)*2*pi/m; H=(exp(i*theta)*A+exp(-i*theta)*A)/2; X,L=eig(H); Y,Inde=max(diag(real(L); E=X(:,Inde)/norm(X(:,Inde); S=E*A*E; p(j)=S; end %forplot(real(p),imag(p) A = 0 2 0 0 0 1 0 0 3 方法三的演算法可用来估计W(A)的面积, 一般而言, 平面n凸多边行依反时针n个点p1,p2,pn, 则凸多边行的面积公式为 _ _ _ (Imaginary(p1 p2 + p2 p3 + pn p1)/2 clg;clc;clear; i=sqrt(-1); %A=input(enter a matrix A= ); %m=input(enter steps m= ); A=0 2 0;0 0 1;0 0 3 m=50; p=; for j=1:m+1 theta=(j-1)*2*pi/m; H=(exp(i*theta)*A+exp(-i*theta)*A)/2; X,L=eig(H); Y,Inde=max(diag(real(L); E=X(:,Inde)/norm(X(:,Inde); S=E*A*E; p(j)=S; end %for area=0 ; for r=1:(m-1) area=area+imag(p(r)*conj(p(r+1)*.5; end %for area=area+

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论