Matlab数学建模:D-S理论与灰色关联结合代码
立即下载
资源介绍:
D-S理论与灰色关联结合代码,可用于Matlab数学建模,方便快捷使用。
function [NewStruct] =WY_StructPlus(Struct1,Struct2,Struct3,Struct4,Struct5,Struct6,Struct7,Struct8,Struct9,Struct10,Struct11,Struct12,Struct13,Struct14,Struct15,Struct16,Struct17,Struct18,Struct19,Struct20,Struct21,Struct22,Struct23,Struct24,Struct25)
%功能:将多个结构体合并为一个
%输入参数:
%Struct1 -- Struct25 结构体1--结构体
%输出参数:
%NewStruct 新结构体
NewStruct.Area=[Struct1.Img.Area;Struct2.Img.Area;Struct3.Img.Area;Struct4.Img.Area;Struct5.Img.Area;Struct6.Img.Area;Struct7.Img.Area;Struct8.Img.Area;Struct9.Img.Area;Struct10.Img.Area;Struct11.Img.Area;Struct12.Img.Area;Struct13.Img.Area;Struct14.Img.Area;Struct15.Img.Area;Struct16.Img.Area;Struct17.Img.Area;Struct18.Img.Area;Struct19.Img.Area;Struct20.Img.Area;Struct21.Img.Area;Struct22.Img.Area;Struct23.Img.Area;Struct24.Img.Area;Struct25.Img.Area];
NewStruct.Perimeter=[Struct1.Img.Perimeter;Struct2.Img.Perimeter;Struct3.Img.Perimeter;Struct4.Img.Perimeter;Struct5.Img.Perimeter;Struct6.Img.Perimeter;Struct7.Img.Perimeter;Struct8.Img.Perimeter;Struct9.Img.Perimeter;Struct10.Img.Perimeter;Struct11.Img.Perimeter;Struct12.Img.Perimeter;Struct13.Img.Perimeter;Struct14.Img.Perimeter;Struct15.Img.Perimeter;Struct16.Img.Perimeter;Struct17.Img.Perimeter;Struct18.Img.Perimeter;Struct19.Img.Perimeter;Struct20.Img.Perimeter;Struct21.Img.Perimeter;Struct22.Img.Perimeter;Struct23.Img.Perimeter;Struct24.Img.Perimeter;Struct25.Img.Perimeter];
NewStruct.Major=[Struct1.Img.Major;Struct2.Img.Major;Struct3.Img.Major;Struct4.Img.Major;Struct5.Img.Major;Struct6.Img.Major;Struct7.Img.Major;Struct8.Img.Major;Struct9.Img.Major;Struct10.Img.Major;Struct11.Img.Major;Struct12.Img.Major;Struct13.Img.Major;Struct14.Img.Major;Struct15.Img.Major;Struct16.Img.Major;Struct17.Img.Major;Struct18.Img.Major;Struct19.Img.Major;Struct20.Img.Major;Struct21.Img.Major;Struct22.Img.Major;Struct23.Img.Major;Struct24.Img.Major;Struct25.Img.Major];
NewStruct.Minor=[Struct1.Img.Minor;Struct2.Img.Minor;Struct3.Img.Minor;Struct4.Img.Minor;Struct5.Img.Minor;Struct6.Img.Minor;Struct7.Img.Minor;Struct8.Img.Minor;Struct9.Img.Minor;Struct10.Img.Minor;Struct11.Img.Minor;Struct12.Img.Minor;Struct13.Img.Minor;Struct14.Img.Minor;Struct15.Img.Minor;Struct16.Img.Minor;Struct17.Img.Minor;Struct18.Img.Minor;Struct19.Img.Minor;Struct20.Img.Minor;Struct21.Img.Minor;Struct22.Img.Minor;Struct23.Img.Minor;Struct24.Img.Minor;Struct25.Img.Minor];
NewStruct.MajorVSMinor=[Struct1.Img.MajorVSMinor;Struct2.Img.MajorVSMinor;Struct3.Img.MajorVSMinor;Struct4.Img.MajorVSMinor;Struct5.Img.MajorVSMinor;Struct6.Img.MajorVSMinor;Struct7.Img.MajorVSMinor;Struct8.Img.MajorVSMinor;Struct9.Img.MajorVSMinor;Struct10.Img.MajorVSMinor;Struct11.Img.MajorVSMinor;Struct12.Img.MajorVSMinor;Struct13.Img.MajorVSMinor;Struct14.Img.MajorVSMinor;Struct15.Img.MajorVSMinor;Struct16.Img.MajorVSMinor;Struct17.Img.MajorVSMinor;Struct18.Img.MajorVSMinor;Struct19.Img.MajorVSMinor;Struct20.Img.MajorVSMinor;Struct21.Img.MajorVSMinor;Struct22.Img.MajorVSMinor;Struct23.Img.MajorVSMinor;Struct24.Img.MajorVSMinor;Struct25.Img.MajorVSMinor];
NewStruct.Eccentricity=[Struct1.Img.Eccentricity;Struct2.Img.Eccentricity;Struct3.Img.Eccentricity;Struct4.Img.Eccentricity;Struct5.Img.Eccentricity;Struct6.Img.Eccentricity;Struct7.Img.Eccentricity;Struct8.Img.Eccentricity;Struct9.Img.Eccentricity;Struct10.Img.Eccentricity;Struct11.Img.Eccentricity;Struct12.Img.Eccentricity;Struct13.Img.Eccentricity;Struct14.Img.Eccentricity;Struct15.Img.Eccentricity;Struct16.Img.Eccentricity;Struct17.Img.Eccentricity;Struct18.Img.Eccentricity;Struct19.Img.Eccentricity;Struct20.Img.Eccentricity;Struct21.Img.Eccentricity;Struct22.Img.Eccentricity;Struct23.Img.Eccentricity;Struct24.Img.Eccentricity;Struct25.Img.Eccentricity];
NewStruct.Circularity=[Struct1.Img.Circularity;Struct2.Img.Circularity;Struct3.Img.Circularity;Struct4.Img.Circularity;Struct5.Img.Circularity;Struct6.Img.Circularity;Struct7.Img.Circularity;Struct8.Img.Circularity;Struct9.Img.Circularity;Struct10.Img.Circularity;Struct11.Img.Circularity;Struct12.Img.Circularity;Struct13.Img.Circularity;Struct14.Img.Circularity;Struct15.Img.Circularity;Struct16.Img.Circularity;Struct17.Img.Circularity;Struct18.Img.Circularity;Struct19.Img.Circularity;Struct20.Img.Circularity;Struct21.Img.Circularity;Struct22.Img.Circularity;Struct23.Img.Circularity;Struct24.Img.Circularity;Struct25.Img.Circularity];
NewStruct.IGreenMean=[Struct1.Img.IGreenMean;Struct2.Img.IGreenMean;Struct3.Img.IGreenMean;Struct4.Img.IGreenMean;Struct5.Img.IGreenMean;Struct6.Img.IGreenMean;Struct7.Img.IGreenMean;Struct8.Img.IGreenMean;Struct9.Img.IGreenMean;Struct10.Img.IGreenMean;Struct11.Img.IGreenMean;Struct12.Img.IGreenMean;Struct13.Img.IGreenMean;Struct14.Img.IGreenMean;Struct15.Img.IGreenMean;Struct16.Img.IGreenMean;Struct17.Img.IGreenMean;Struct18.Img.IGreenMean;Struct19.Img.IGreenMean;Struct20.Img.IGreenMean;Struct21.Img.IGreenMean;Struct22.Img.IGreenMean;Struct23.Img.IGreenMean;Struct24.Img.IGreenMean;Struct25.Img.IGreenMean];
NewStruct.NormGreen=[Struct1.Img.NormGreen;Struct2.Img.NormGreen;Struct3.Img.NormGreen;Struct4.Img.NormGreen;Struct5.Img.NormGreen;Struct6.Img.NormGreen;Struct7.Img.NormGreen;Struct8.Img.NormGreen;Struct9.Img.NormGreen;Struct10.Img.NormGreen;Struct11.Img.NormGreen;Struct12.Img.NormGreen;Struct13.Img.NormGreen;Struct14.Img.NormGreen;Struct15.Img.NormGreen;Struct16.Img.NormGreen;Struct17.Img.NormGreen;Struct18.Img.NormGreen;Struct19.Img.NormGreen;Struct20.Img.NormGreen;Struct21.Img.NormGreen;Struct22.Img.NormGreen;Struct23.Img.NormGreen;Struct24.Img.NormGreen;Struct25.Img.NormGreen];
NewStruct.IGreenMax=[Struct1.Img.IGreenMax;Struct2.Img.IGreenMax;Struct3.Img.IGreenMax;Struct4.Img.IGreenMax;Struct5.Img.IGreenMax;Struct6.Img.IGreenMax;Struct7.Img.IGreenMax;Struct8.Img.IGreenMax;Struct9.Img.IGreenMax;Struct10.Img.IGreenMax;Struct11.Img.IGreenMax;Struct12.Img.IGreenMax;Struct13.Img.IGreenMax;Struct14.Img.IGreenMax;Struct15.Img.IGreenMax;Struct16.Img.IGreenMax;Struct17.Img.IGreenMax;Struct18.Img.IGreenMax;Struct19.Img.IGreenMax;Struct20.Img.IGreenMax;Struct21.Img.IGreenMax;Struct22.Img.IGreenMax;Struct23.Img.IGreenMax;Struct24.Img.IGreenMax;Struct25.Img.IGreenMax];
NewStruct.IscMean=[Struct1.Img.IscMean;Struct2.Img.IscMean;Struct3.Img.IscMean;Struct4.Img.IscMean;Struct5.Img.IscMean;Struct6.Img.IscMean;Struct7.Img.IscMean;Struct8.Img.IscMean;Struct9.Img.IscMean;Struct10.Img.IscMean;Struct11.Img.IscMean;Struct12.Img.IscMean;Struct13.Img.IscMean;Struct14.Img.IscMean;Struct15.Img.IscMean;Struct16.Img.IscMean;Struct17.Img.IscMean;Struct18.Img.IscMean;Struct19.Img.IscMean;Struct20.Img.IscMean;Struct21.Img.IscMean;Struct22.Img.IscMean;Struct23.Img.IscMean;Struct24.Img.IscMean;Struct25.Img.IscMean];
NewStruct.NormIsc=[Struct1.Img.NormIsc;Struct2.Img.NormIsc;Struct3.Img.NormIsc;Struct4.Img.NormIsc;Struct5.Img.NormIsc;Struct6.Img.NormIsc;Struct7.Img.NormIsc;Struct8.Img.NormIsc;Struct9.Img.NormIsc;Struct10.Img.NormIsc;Struct11.Img.NormIsc;Struct12.Img.NormIsc;Struct13.Img.NormIsc;Struct14.Img.NormIsc;Struct15.Img.NormIsc;Struct16.Img.NormIsc;Struct17.Img.NormIsc;Struct18.Img.NormIsc;Struct19.Img.NormIsc;Struct20.Img.NormIsc;Struct21.Img.NormIsc;Struct22.Img.NormIsc;Struct23.Img.NormIsc;Struct24.Img.NormIsc;Struct25.Img.NormIsc];
NewStruct.IscMax=[Struct1.Img.IscMax;Struct2.Img.IscMax;Struct3.Img.IscMax;Struct4.Img.IscMax;Struct5.Img.IscMax;Struct6.Img.IscMax;Struct7.Img.IscMax;Struct8.Img.IscMax;Struct9.Img.IscMax;Struct10.Img.IscMax;Struct11.Img.IscMax;Struct12.Img.IscMax;Struct13.Img.IscMax;Struct14.Img.IscMax;Struct15.Img.IscMax;Struct16.Img.IscMax;Struct17.Img.IscMax;Struct18.Img.IscMax;Struct19.Img.IscMax;Struct20.Img.IscMax;Struct21.Img.IscMax;Struct22.Img.IscMax;Struct23.Img.IscMax;Struct24.Img.IscMax;Struct25.Img.IscMax];
NewStruct.IMatched1Max=[Struct1.Img.IMatched1Max;Struct2.Img.IMatched1Max;Struct3.Img.IMatched1Max;Struct4.Img.IMatched1Max;Struct5.Img.IMatched1Max;Struct6.Img.IMatched1Max;Struct7.Img.IMatched1Max;Struct8.Img.IMatched1Max;Struct9.Img.IMatched1M