欢迎来到天天文库
浏览记录
ID:50544943
大小:23.25 KB
页数:7页
时间:2020-03-10
《MatLab层次分析法代码.doc》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、>>A=[12564724;1/21242712;1/51/215151/22;1/61/41/511/331/21/4;1/41/2131512;1/71/71/51/31/511/71/5;1/21221712;1/41/21/241/251/21];>>d=eig(A)%求全部特征值所组成的向量>>[V,D]=eig(A)%求特征值及特征向量所组成的矩阵>>A=[12564724;1/21242712;1/51/215151/22;1/61/41/511/331/21/4;1/41/2131512;1/71/71/51/31/511/7
2、1/5;1/21221712;1/41/21/241/251/21];d=eig(A)%求全部特征值所组成的向量[V,D]=eig(A)%求特征值及特征向量所组成的矩阵d=8.4243-0.0020+1.7077i-0.0020-1.7077i-0.1240+0.7030i-0.1240-0.7030i-0.1103+0.3207i-0.1103-0.3207i0.0483V=Columns1through70.74270.85690.85690.71530.71530.71000.71000.38930.1636+0.0231i0.1636
3、-0.0231i0.1747-0.0500i0.1747+0.0500i-0.2144+0.4572i-0.2144-0.4572i0.2579-0.0614+0.3195i-0.0614-0.3195i-0.0739-0.0916i-0.0739+0.0916i-0.1506-0.0176i-0.1506+0.0176i0.0985-0.0976-0.0879i-0.0976+0.0879i0.0679+0.0635i0.0679-0.0635i0.0183+0.0558i0.0183-0.0558i0.25880.0176+0.1232i
4、0.0176-0.1232i0.0227+0.3409i0.0227-0.3409i-0.0373-0.2293i-0.0373+0.2293i0.05190.0080-0.0585i0.0080+0.0585i-0.0134-0.0662i-0.0134+0.0662i-0.0507-0.0850i-0.0507+0.0850i0.33520.1943-0.0809i0.1943+0.0809i-0.4321+0.2823i-0.4321-0.2823i0.1131+0.3427i0.1131-0.3427i0.1966-0.2021+0.
5、1063i-0.2021-0.1063i-0.0808-0.1962i-0.0808+0.1962i0.1403-0.0266i0.1403+0.0266iColumn8-0.36240.8442-0.3411-0.04330.1318-0.0222-0.09110.1081D=Columns1through78.42430000000-0.0020+1.7077i0000000-0.0020-1.7077i0000000-0.1240+0.7030i0000000-0.1240-0.7030i0000000-0.1103+0.3207i00
6、00000-0.1103-0.3207i0000000Column800000000.0483>>A=[12564724;1/21242712;1/51/215151/22;1/61/41/511/331/21/4;1/41/2131512;1/71/71/51/31/511/71/5;1/21221712;1/41/21/241/251/21];e=max(eig(A));%最大特征值v=null(A-e*eye(length(A)));%e对应特征向量>>ee=8.4243>>vv=-0.7427-0.3893-0.2579-0.0985
7、-0.2588-0.0519-0.3352-0.1966p1=0.318632288p2=0.167017032p3=0.110643957p4=0.042258355p5=0.111030074p6=0.022266077p7=0.143807113p8=0.084345103>>A=[13365957;1/31134746;1/31134746;1/61/31/311/241/22;1/51/41/421412;1/91/71/71/41/411/31/2;1/51/41/421312;1/71/61/61/21/221/21];e=ma
8、x(eig(A));%最大特征值v=null(A-e*eye(length(A)));%e对应特征向量>>e>>A=[13365957;1/31134746;1/3
此文档下载收益归作者所有